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

Basic C Programs

The document lists ten programming tasks in C, including finding the largest of three numbers, checking if a number is even or odd, and swapping two numbers. Additional tasks involve calculating factorials, checking for prime numbers, generating Fibonacci series, reversing numbers, and checking for palindromes and Armstrong numbers. The document also mentions patterns without providing specific details.

Uploaded by

Pranjal Shukla
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)
3 views1 page

Basic C Programs

The document lists ten programming tasks in C, including finding the largest of three numbers, checking if a number is even or odd, and swapping two numbers. Additional tasks involve calculating factorials, checking for prime numbers, generating Fibonacci series, reversing numbers, and checking for palindromes and Armstrong numbers. The document also mentions patterns without providing specific details.

Uploaded by

Pranjal Shukla
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

Programs

1. Write a C program to find the largest of three numbers.


2. Write a C program to check whether a number is even or odd.
3. Write a C program to swap two numbers (with and without using a third variable).
4. Write a C program to find the factorial of a number using a loop.
5. Write a C program to check whether a number is prime or not.
6. Write a C program to print the Fibonacci series up to n terms.
7. Write a C program to reverse a number (e.g., 123 → 321).
8. Write a C program to check whether a number is a palindrome.
9. Write a C program to check whether a number is Armstrong or not.
10. Patterns:

You might also like