#include <iostream>
#include <iomanip>
using namespace std;
int main () {
double a,b;
int c,d;
cin>>a>>b>>c>>d;
cout.setf(ios::showpos);
cout<<"SHOWPOS : "<<showpos<<a<<"\n";
cout.setf(ios::showpoint);
cout<<"Showpoint : "<<setprecision(6)<<showpoint<<b<<"\n";
cout.setf(ios::hex);
cout<<hex<<"Hexadecimal is : " <<c<<"\n";
cout.setf(ios::uppercase);
cout<<"UPPER CASE : "<<uppercase<<d;
return 0;
}
#include <iomanip>
using namespace std;
int main () {
double a,b;
int c,d;
cin>>a>>b>>c>>d;
cout.setf(ios::showpos);
cout<<"SHOWPOS : "<<showpos<<a<<"\n";
cout.setf(ios::showpoint);
cout<<"Showpoint : "<<setprecision(6)<<showpoint<<b<<"\n";
cout.setf(ios::hex);
cout<<hex<<"Hexadecimal is : " <<c<<"\n";
cout.setf(ios::uppercase);
cout<<"UPPER CASE : "<<uppercase<<d;
return 0;
}
No comments:
Post a Comment