Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
7 views2 pages

Assignment 2 Pps Nested Loop

The document contains a list of programming tasks in C language, focusing on conditional statements and loops. It includes tasks such as finding the largest number among four, checking for evenness, determining divisibility, and generating various numerical patterns. Additional tasks involve mathematical computations like factorial, Fibonacci series, and prime number checks.

Uploaded by

Rajasomeshwar
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)
7 views2 pages

Assignment 2 Pps Nested Loop

The document contains a list of programming tasks in C language, focusing on conditional statements and loops. It includes tasks such as finding the largest number among four, checking for evenness, determining divisibility, and generating various numerical patterns. Additional tasks involve mathematical computations like factorial, Fibonacci series, and prime number checks.

Uploaded by

Rajasomeshwar
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/ 2

QUESTION (CONDITIONAL, LOOPS)

1. Write a c program to find the largest number out of four numbers

2. Write a c program to check whether the given number is even or not

3. Write a c program to check whether the given number is divisible by (5 and


7) or not

4. Write a c program to check whether an alphabet is a vowel or consonant

5. Write a c program to check leap year

6. Write a c program to find the roots of a quadratic equation

7. Write a c program Displaying 1 to 10

8. Write a c program Displaying 10 to 1

9. Write a c program displaying even numbers from 1 to n

10. Write a c program displaying odd numbers from n to 1

11. Write a c program Displaying A to Z

12. Write a c program to find factorial of a given number

13. Write a c program to display the sum of n numbers

14. Write a c program to print the cube of all numbers from 1 to a given
number

15. Write a c program to print a multiplication table of a given number

16. Write a c program to print the square of all numbers from 0 to 10

17. Write a c program to find the sum of the digits of a number

18. Write a c program to check whether the given number is palindrome or not

19. Write a c program to check whether the given number is Armstrong or not
20. Write a c program to print all the factors of a number

21. Write a c program to check whether the given number is a prime number or
not

22. Write a c program to check whether it is a perfect number or not

23. Write a c program to get Fibonacci series between 1 to 50

24. Write a c program to find LCM of given two numbers

25. Write a c program to find the GCD of given two numbers

26. Write a c program to display the following patterns.

You might also like