KEMBAR78
For Loop Questions | PDF
0% found this document useful (0 votes)
4 views1 page

For Loop Questions

Uploaded by

jassim.khan857
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

For Loop Questions

Uploaded by

jassim.khan857
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Programming Questions Using For Loops

1. Write a program to print numbers from 1 to 10.

2. Write a program to print the multiplication table of a number entered by the user.

3. Write a program to calculate the sum of numbers from 1 to N, where N is entered by the user.

4. Write a program to print each character of a string entered by the user.

5. Write a program to print all even numbers from 1 to 20.

6. Write a program to count the number of vowels in a word entered by the user.

7. Write a program to print a pattern of stars with rows entered by the user.

8. Write a program to reverse a word entered by the user.

9. Write a program to find the factorial of a number entered by the user.

10. Write a program to check if a number is prime or not.

11. Write a program to print numbers in reverse order from 10 to 1.

12. Write a program to print the Fibonacci series up to N terms, where N is entered by the user.

13. Write a program to calculate the average of a list of numbers.

14. Write a program to print all numbers divisible by 3 and 5 from 1 to 100.

15. Write a program to check if a word entered by the user is a palindrome.

You might also like