0% found this document useful (0 votes)
5 views1 page

Assignment No 3

The document outlines a programming assignment consisting of nine tasks. These tasks include writing programs to check even or odd numbers, find the largest of three numbers, print multiplication tables, generate Fibonacci series, count digits, check for prime numbers, print prime numbers in a range, calculate factorials, and implement a switch-case structure for days of the week. Each task emphasizes the use of different programming constructs such as loops and conditional statements.

Uploaded by

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

Assignment No 3

The document outlines a programming assignment consisting of nine tasks. These tasks include writing programs to check even or odd numbers, find the largest of three numbers, print multiplication tables, generate Fibonacci series, count digits, check for prime numbers, print prime numbers in a range, calculate factorials, and implement a switch-case structure for days of the week. Each task emphasizes the use of different programming constructs such as loops and conditional statements.

Uploaded by

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

Questions:Assignment No-3

1. Write a program to check whether a number is even or odd.

2. Write a program to find the largest of three numbers using if-else statements.

3. Write a program to print the multiplication table of a number using a for loop.

4. Write a program to print the Fibonacci series up to n terms using a while loop.

5. Write a program to count the number of digits in a given number using a while loop.

6. Write a program to check whether a number is prime or not using a for loop.

7. Write a program to print all the prime numbers between n1 and n2 using a for loop.

8. Write a program to calculate the factorial of a number using a do-while loop.

9. Write a program to implement a switch-case structure to print the corresponding day of the week
based on the input (1 for Sunday, 2 for Monday, etc.).

You might also like