66 973
Assignments Done
99,2%
Successfully Done
In November 2018

Answer to Question #4009 in C++ for ashutosh

Question #4009
My question is
& write c++ program that print 4 integer and then print them in opposite, & please help.
Expert's answer
#include <iostream>
using namespace std;
int main ()
{
int a[4] = { 1, 2, 3, 4};
cout<< "4 integer: ";
for (int i=0 ; i < 4 ; i++)
& cout<< a[i]<< ' '; cout<<endl;

cout<< "4 integer in opposite: ";
for (int i=3 ; i >= 0 ; i--)
& cout<< a[i]<< ' '; cout<<endl;




system("pause");
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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions