Question: Write a C + + program to initialize an array named num: 1 , 2 , 3 , 4 , . . . 1 0

Write a C++ program to initialize an array named num: 1,2,3,4,...100. Display values in num in the following form. The numbers displayed need to be left justified, each with a width of four spaces. Hint: you will need two index variables, one to count the line number and the other to count the position in the line.
1
23
456
78910

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!