1. Write a C program to find the area of a circle.
2. Write a C program to find the area of a triangle.
3. Write a C program to swap two numbers without temp
variable (or a third variable)
4. Write a C program to print ASCII value of the character
5. Write a C program to read a character in uppercase and then
print in lowercase.
6. Write a C program to swap two numbers with temp variable
7. Write a C program to calculate the average of two number
8. Write a C program to calculate the simple interest.
9. Write a C program to find the quotient and remainder of two
numbers
10.Write a C program that displays the size of every datatype.
1. Write a c program to add two integers and print the result ,inputs must be taken using scanf function.
2. Write a c program to add two float numbers without third variable and print the result ,inputs must be taken using scanf function.
3. Write a c program, to subtract two integers and print the result, inputs must be taken using scanf function.
4. Write a c program to multiply two numbers and print the results, inputs must be taken using scanf function.
5. Write a c program to divide two numbers and print the result, inputs must be taken using scanf function.
6. Write a c program to perform modulo operation on two numbers and print the result, inputs must be taken using scanf function.
7. Write a c program to explain increment and decrement operators.
8. Write a c program to show working of assignment operator.
1. Write a C program to demonstrate the relational operator
2. Write a C program to perform AND operation between two integers.
3. Write a C program to perform OR operation between two integers.
4. Write a C program to perform XOR operation between two integers.
5. Write a C program to demonstrate the logical operator
1. Given (or input from the user) marks in 3 subjects and we have to calculate percentage and print the division. Formula to get percentage: Total obtained marks *100/Grand total (total of maximum marks) Division Based on the percentage, we will print the division, if Percentage is: Greater than or equal to 60, division will be "First" Greater than or equal to range(46 to 59), division will be "Second"Greater than or equal to range(40 to 45), division will be"Third" Less than it (we will not check any condition, it will be written in else), the result will be fail.
2. Program to check whether number is EVEN or ODD.
3. Program to find largest number among three numbers.
4. C program to check whether a person is eligible for voting or not?
5. Write a C program to find maximum between two numbers.
6. Write a C program to find minimum between three numbers.
7. Write a C program to check whether a number is negative, positive or zero.
8. Write a C program to check whether a number is divisible by 5 and 11 or not.
9. Write a C program to input any alphabet and check whether it is vowel or consonant.
10. Write a C program to calculate profit or loss.
Ternary operator
1. Write a C program to find maximum between two numbers using conditional operator.
2. Write a C program to find maximum between three numbers using conditional operator.
3. Write a C program to check whether a number is even or odd using conditional operator.
4. Write a C program to check whether year is leap year or not using conditional operator.
5. Write a C program to check whether character is an alphabet or not using conditional operator.
Switch CASE
6. Write a C program to print day of week name using switch case.
7. Write a C program print total number of days in a month using switch case.
8. Write a C program to check whether an alphabet is vowel or consonant using switch case.
9. Write a C program to find maximum between two numbers using switch case.
10. Write a C program to check whether a number is even or odd using switch case.
11. Write a C program to check whether a number is positive, negative or zero using switch case.
(LOOPS)
1. Write a C program to print all natural numbers from 1 to n. - using while loop(n is user input)
2. Write a C program to print all natural numbers in reverse (from n to 1). - using while loop
3. Write a C program to print all alphabets from a to z. - using while loop
4. Write a C program to count number of digits in a number – using do while loop
5. Write a C program to find first and last digit of a number. – using while loop
6. Write a C program to find sum of first and last digit of a number. – using while loop
7. Write a C program to swap first and last digits of a number - using while loop
8. Write a C program to enter a number and print its reverse - using while loop
9. Write a C program to check whether a number is palindrome or not.
10. Write a C program to enter a number and print it in words.
11. Write a C program to calculate factorial of a number – using for loop
12. Write a C program to check whether a number is Prime number or not using for loop
13. Write a C program to find all prime factors of a number using loop statement
14. Write a C program to check Armstrong number of three digits.
15. Write a C program to print all Armstrong numbers for given range using loop statement
16. Write a C program to check whether a number is Perfect number or not.
17. Write a C program to print all Perfect numbers between 1 to n using while loop
18. Write a C program to print Fibonacci series up to n terms.
Comments
Post a Comment