Q1. Write the output of the following
- for i in "python":
print (i)
- for i in range(5):
- for i in range(10,15):
Q2. Write a program to print first 10 natural number.
Q3. Write a program to print first 10 even numbers.
Q4. Write a program to print first 10 odd numbers.
Q5. Write a program to print first 10 even numbers in reverse order.
Q6. Write a program to print table of a number accepted from user.
Q7. Write a program to display sum of the digits of a number accepted from the user.
Q8. Write a program to find the factorial of a number.
Q9. Write a program to find the sum of the digits of a number.
Q10. Write a program to check whether a number is prime or not.
No comments:
Post a Comment