0% found this document useful (0 votes)
17 views

C Programs

The document provides 10 examples of C programs to write including programs to: perform arithmetic operations on two numbers; check if a character is a vowel or not; determine if a number is even or odd; find the sum of digits of a number; add n numbers entered by the user; reverse a given number; make Floyd's triangle; find the maximum of three numbers; and make a triangle of increasing numbers.

Uploaded by

Parth Patel
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

C Programs

The document provides 10 examples of C programs to write including programs to: perform arithmetic operations on two numbers; check if a character is a vowel or not; determine if a number is even or odd; find the sum of digits of a number; add n numbers entered by the user; reverse a given number; make Floyd's triangle; find the maximum of three numbers; and make a triangle of increasing numbers.

Uploaded by

Parth Patel
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

C Programs:

1. Give Example of -if loop(done) -if-else loop -if-else ladder -nested-if -while(done) -do while -For loop 2. Write a program to perform arithmetic operations (Addition, Subtraction, Division, Multiplication) on two nos.(done) 3. Write a program to find that character entered is vowel or not. 4. Write a program to find out that the no entered is even no or odd no. 5. Write a program to find out the sum of entered no(e.g. no=123 than sum=1+2+3=6) 6. Addition of n numbers.(if user has entered 5 digits , then make summation of 5 digits)(take input from user) 7. Write a program to find out the reverse of a given no. 8. Write a program to make Floyds Triangle. e.g. 1 23 456 7 8 9 10 9. Find the Maximum two max no among three nos. 10. Write a program to make Triangle. e.g. 1 22 333 4444

You might also like