write an algorithm to print 1 to 10 numbers
Answers
Answer:
Python program to display natural numbers from 1 to n
#print 1 to n natural number. #using for loop. num=int(input("Please enter maxinmum number: ")) ...
#Python program to print natural number fro 1 to n. #using while loop. num=int(input("Enter maximum Natural number: ")) ...
#print 1 to n natural number. #using function. num=int(input("Please enter maxinmum number: "))
Here is how you could ask a programmable calculator to display numbers. In order to use this method, we first have to define a value that we will increment.
0 → X
This makes sure that we have zero in the variable X.
Now, write a statement to add one to this variable, and remember it.
X + 1 → X
When we use this statement on the home screen, it immediately shows us the new value.
Keep pressing Enter until you get as high as you want to go.