num c 2b 2b

Solutions on MaxInterview for num c 2b 2b by the best coders in the world

showing results for - "num c 2b 2b"
Emil
21 Jul 2020
1#include <iostream>
2using namespace std;
3 
4int main () {
5   // number definition:
6   short  s;
7   int    i;
8   long   l;
9   float  f;
10   double d;
11   
12   // number assignments;
13   s = 10;      
14   i = 1000;    
15   l = 1000000; 
16   f = 230.47;  
17   d = 30949.374;
18   
19   // number printing;
20   cout << "short  s :" << s << endl;
21   cout << "int    i :" << i << endl;
22   cout << "long   l :" << l << endl;
23   cout << "float  f :" << f << endl;
24   cout << "double d :" << d << endl;
25 
26   return 0;
27}