Program to print the number from to 100 in intervals of 10 in vertical
We want to print the number like this
How this code work
- First we take the input from the user.
- Then we iterate the for loop from 1 to 10+1, because it is the number of the rows.
- Then we iterate the nested loop from i,n+1 then 10 difference, because in horitontal we want to print the number with difference 10.