76 289
Assignments Done
Successfully Done
In May 2019

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]<<" ";
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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions