1.

Write a loop to print natural number from 1 to20​

Answer»

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 .EXPLANATION:don't FORGOT to MARK as brainlist



Discussion

No Comment Found