Write a program that defines five integer variables and initializes them to I. 10, 100, 1000, and 10000 and prints them on a single line separated by spaces.
#include <iostream>
using namespace std;
int main(){
int a = 10, b = 100, c = 1000, d = 10000;
cout << a << " " << b << " " << c << " " << d << endl;
return 0;
}
Comments
Leave a comment