This commit is contained in:
2020-05-01 10:28:43 +02:00
parent 3bd25450fa
commit 61762f724d
3 changed files with 144 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#include<iostream>
#include<iomanip>
using namespace std;
int main() {
cout << setprecision(17);
cout << setw(10);
cout << "Enter a float > ";
float x;
cin >> x;
x = x + 1;
cout << x << endl;
cout << "Enter a double > ";
double y;
cin >> y;
y = y + 1;
cout << y << endl;
}