Answer to Question #292694 in C++ for gya

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.


1
Expert's answer
2022-02-01T06:32:53-0500
#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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog