0

Write a program to display first 10 natural number

3rd Apr 2018, 3:58 PM
Abhishek Behera
Abhishek Behera - avatar
3 Answers
+ 17
1)run a loop from a=1 to a=10 , increment by 1 after each cycle of loop 2)print a ; //statement inside loop
3rd Apr 2018, 4:00 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 2
You didnt put any restrictions, so I played a bit int i = 1; while(cout << i++ << ',', i<= 10){}
3rd Apr 2018, 5:27 PM
Bebida Roja
Bebida Roja - avatar