This document contains a list of 14 programming problems involving for and while loops. The problems include printing odd numbers from 1 to N using a while loop, reading an integer and printing its multiplication table, printing the table of numbers from 1 to 20, reading ages of 15 people and categorizing them, calculating the sum of N natural numbers, printing the Fibonacci series, finding the factorial of a given number, checking if a number is a palindrome, finding the highest common factor of two numbers, printing the ASCII values of all characters, finding even and odd numbers within a range using a for loop, printing all alphabets from a to z, printing all natural numbers, and an empty 14th item.
This document contains a list of 14 programming problems involving for and while loops. The problems include printing odd numbers from 1 to N using a while loop, reading an integer and printing its multiplication table, printing the table of numbers from 1 to 20, reading ages of 15 people and categorizing them, calculating the sum of N natural numbers, printing the Fibonacci series, finding the factorial of a given number, checking if a number is a palindrome, finding the highest common factor of two numbers, printing the ASCII values of all characters, finding even and odd numbers within a range using a for loop, printing all alphabets from a to z, printing all natural numbers, and an empty 14th item.
This document contains a list of 14 programming problems involving for and while loops. The problems include printing odd numbers from 1 to N using a while loop, reading an integer and printing its multiplication table, printing the table of numbers from 1 to 20, reading ages of 15 people and categorizing them, calculating the sum of N natural numbers, printing the Fibonacci series, finding the factorial of a given number, checking if a number is a palindrome, finding the highest common factor of two numbers, printing the ASCII values of all characters, finding even and odd numbers within a range using a for loop, printing all alphabets from a to z, printing all natural numbers, and an empty 14th item.
Dept of MCA Session 2022-23 List of Programs- For/While loop
1. WAP to print ODD numbers from 1 to N using while loop.
2. WAP to read an integer and print its multiplication table. 3. C program to print table of numbers from 1 to 20. 4. WAP to read an age of 15 person & find out how many of them fall under : a) Still a baby- age 0 to 5 b) Attending school - age 6 to 17 c) Adult life-age 18 & over [using while loop] 5. WAP to calculate the sum of N natural numbers. 6. WAP to print Fibonacci series. 7. WAP to find out the factorial of any given number. 8. C program to check whether a number is palindrome or not. 9. Write a C program to find HCF of two numbers. 10. Write a C program to print ASCII values of all characters. 11. WAP to find all even and odd numbers from a given range of N numbers using for loop. 12. Write a C program to print all alphabets from a to z. 13. Write a C program to print all natural numbers. 14.
Tshri Vile Parle Kelvani Mandal'S D. J. Sanghvi College of Engineering Department of Information Technology Semester: Iii Subject: Java Programming Lab
Tshri Vile Parle Kelvani Mandal'S D. J. Sanghvi College of Engineering Department of Information Technology Semester: Iii Subject: Java Programming Lab