Muhammad Magdi
Data Type | Description |
---|---|
int | Small integer number |
double |
Large real number |
long long | Large integer number |
string | A sequence of characters (word) |
char | A single character |
bool | Boolean number (0 or 1) |
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
int id, hours;
double rate;
cin >> id >> hours >> rate;
cout << fixed << setprecision(2);
cout << "NUMBER = " << id << endl;
cout << "SALARY = U$ " << hours * rate << endl;
return 0;
}
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
double PI = 3.14159;
double radius;
cin >> radius;
cout << fixed << setprecision(4);
cout << "A=" << PI * radius * radius << endl;
return 0;
}