This document outlines 10 fundamental C programming exercises including writing programs to find the greatest of three numbers, calculate simple interest, factorial of a number, sum of N natural numbers, area of a circle using functions, sum of digits of a number, multiplication table, sum of N numbers in an array, count characters in a string without predefined functions, and create a structure to store student information and print it.
This document outlines 10 fundamental C programming exercises including writing programs to find the greatest of three numbers, calculate simple interest, factorial of a number, sum of N natural numbers, area of a circle using functions, sum of digits of a number, multiplication table, sum of N numbers in an array, count characters in a string without predefined functions, and create a structure to store student information and print it.
This document outlines 10 fundamental C programming exercises including writing programs to find the greatest of three numbers, calculate simple interest, factorial of a number, sum of N natural numbers, area of a circle using functions, sum of digits of a number, multiplication table, sum of N numbers in an array, count characters in a string without predefined functions, and create a structure to store student information and print it.
1. Write a C program to nd the greatest of three numbers.
2. Write a C program to calculate simple interest. 3. Write a C program to calculate factorial of a number. 4. Write a C program to print the sum of N natural numbers. (1+ 2 + …+N) 5. Write a C program to calculate the area of a circle using function. 6. Write a C program to calculate sum of digits of a number. 7. Write a C program to print the multiplication table. 8. Write a C program to nd the sum of N numbers stored in an array. 9. Write a C program to nd the number of characters in a string without using prede ned function. 10. Write a C program to create a structure to store students information (Name, Roll number, CGPA) and print them. fi fi fi fi