60 642
Assignments Done
97,8%
Successfully Done
In April 2018

Answer to Question #7942 in C++ for ronnie

Question #7942
using arrays write a simple program to display numbers 1-20
Expert's answer
#include <iostream>
using namespace std;

int main()
{
int arr[20];
int i;
for (i=0;i<20;i++)
{
& arr[i] = i+1;
}
for (i=0;i<20;i++)
{
& cout<<arr[i]<<" ";
}
cout<<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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions