Question #292694

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.


Expert's answer

#include <iostream>
using namespace std;
int main(){
  int a = 10, b = 100, c = 1000, d = 10000;
  cout << a << " " << b << " " << c << " " << d << endl;
  return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS