0% found this document useful (0 votes)
74 views4 pages

C - Programming: Program Using Printing Statement and Mathematical Calculation

The document outlines various C programming exercises involving different programming concepts like printing statements, mathematical calculations, loops, conditional statements, arrays, strings, functions, and pointers. It provides over 100 exercises grouped under different topics like using printing statements, loops, if-else, loops and if-else together, while loops, switch-case, arrays, strings, functions, and pointers. The exercises include writing programs to perform tasks like calculations, pattern printing, sorting, string/character operations and more using the relevant C programming concepts.

Uploaded by

Salini Rajan
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)
74 views4 pages

C - Programming: Program Using Printing Statement and Mathematical Calculation

The document outlines various C programming exercises involving different programming concepts like printing statements, mathematical calculations, loops, conditional statements, arrays, strings, functions, and pointers. It provides over 100 exercises grouped under different topics like using printing statements, loops, if-else, loops and if-else together, while loops, switch-case, arrays, strings, functions, and pointers. The exercises include writing programs to perform tasks like calculations, pattern printing, sorting, string/character operations and more using the relevant C programming concepts.

Uploaded by

Salini Rajan
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/ 4

C Programming

PROGRAM USING PRINTING STATEMENT AND


MATHEMATICAL CALCULATION
1.
2.
3.
4.
5.
6.
7.
8.
9.

Write a program to print a statement.


Write a program to calculate the addition of two numbers.
Write a program to multiply two numbers.
Write a program to find the Arithematic operation.
Write a program to swap the given numbers.
Write a program to convert celcius to Fahrenheit.
Write a program to find the simple and compound interest.
Write a program to find the power of given value.
Write a program to calculate the quadratic equation
USING FOR LOOP STATEMENT

1.
2.
3.
4.
5.

Write a program to print a statement using for loop.


Write a program to print a statement up to n terms using for loop.
Write a program to find the multiplication table.
Write a program to print the start.
Write a program to print the number in given format 3
2
1
2
1
1
6. Write a program to find the sum between limits.
7. Write a program to find the sum of N numbers using for loop.
8. Write a program to find the sum of digits.
9. Write a program to find the factorial number.
10. Write a program to generate the factorial number.
11. Write a program to generate fibonacci series.
12. Write a program to print the series as 1+1/2+1/3+...
13. Write a program to print the starts in triangle shape.
14. Write a program to print the number in incrementing order in triangle shape.
USING IF ELSE STATEMENT
1. Write a program to find the given number is equal or not.
2. Write a program to find the given number is odd or even.

3.
4.
5.
6.
7.
8.
9.

Write a program to find whether the given number is positive or negative.


Write a program to find the biggest number among 3 numbers using if statement.
Write a program to find the electricity bill using if else statement.
Write a program to calculate the grade of a subject.
Write a program to find the maximum and minimum number.
Write a program to calculate the roots of quadratic equation.
Write a program to calculate Gross pay and Net pay.
USING FOR LOOP AND IF STATEMENT

1. Write a program to find the number divisible by 7 between the given limits.
2. Write a program to generate odd and even numbers.
3. Write a program to print the hallo box.
4. Write a program to print the hallo box by getting the value from the user.
5. Write a program to generate the power of n.
6. Write a program to find the sum of odd and even numbers.
7. Write a program to check whether the given number is prime or not.
8. Write a program to generate prime number.
9. Write a program to generate prime numbers using square root value.
10. Write a program to generate prime numbers by getting the limits value.
11. Write a program to create a empty square.
12. Write a program to create a expanding square box
13. Write a program to find the sin series using if statement
USING WHILE STATEMENT
1. Write a program to find the sum of N numbers using while statement.
2. Write a program to print the number using while statement.
3. Write a program to find the reverse of a given number.
4. Write a program to find the square of the given number.
5. Write a program to play a match stick game with the stick of 21.
6. Write a program to find the multiplication table upto 10 tables.
7. Write a program to find the power of given value using while statement.
8. Write a program to find the armstrong number.
9. Write a program to find the armstrong number generation.
10. Write a program to find the sin series using while statement

USING SWITCH CASE STATEMENT


1. Write a program to find the Arithematical operation using switch case.
2. Write a program to print the weekdays using switch case.
3. Write a program to find Armstrong number, Factorial number, given number is
equal or not and prime number using switch case.
4. Write a program to print the calender of a year using switch case.
USING ARRAY
1.
2.
3.
4.

Write a program to find the position of the biggest value using array.
Write a program to get the number and print that number using array.
Write a program to reverse a given number using array.
Write a program to calculate the total and average for n number of terms using
array.
5. Write a program to find the sum upto n numbers using array.
6. Write a program to find the sum of given numbers using array.
7. Write a program to find the sum of squares using array.
8. Write a program to find the middle value from a given numbers.
9. Write a program to find the addition of matrix.
10. Write a program to find the Subtraction of matrix.
11. Write a program to find the multiplication of matrix.
12. Write a program to find the transpose of matrix.
13. Write a program to find the addition,subtraction and multiplication of matrix.
14. Write a program to sort the numbers in descending order using array.
15. Write a program to sort the numbers in ascending order using array
USING STRING
1.
2.
3.
4.
5.
6.
7.

Write a program to convert lower case into upper case.


Write a program to Count number of vowels in a given string.
Write a program to check whether the given string is palindrome or not.
Write a program to find the upper case string into lower case string.
Write a program to sort the given strings in alphabetical order.
Write a program to find the count of characters,words and lines.
Write a program to sort the strings using array

USING FUNCTION STATEMENT


1.
2.
3.
4.
5.

Write a program to find the factorial number using function.


Write a program to find the area of triangle using function.
Write a program to find the number 7 in a given digit using function.
Write a program to find the sin series using function.
Write a program to find the transpose of matrix using function
USING POINTER VARIABLE

1. Find the reorder of one-dimensional integer array from smallest to largest using
pointer notation.

You might also like