WAP TO PRINT 1ST 20 NATURAL NUMBERS
Answers
Answered by
1
Answer:
The first 20 natural numbers are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 and 20.
Answered by
0
Answer:
Explanation:
Step by step descriptive logic to print natural numbers from 1 to n .
.Input upper limit to print natural number from user. Store it in some variable say N .
.Run a for loop from 1 to N with 1 increment. The loop structure should be like for(i=1; i<=N; i++) . ...
.Inside the loop body print the value of i .
Similar questions