1. Write a C Program to print Welcome to C Programming.

Output:

2. Write a program in C to print the following:
Welcome to C Programming
It is invented by Denis Ritche
It is portable, flexible and versatile

Output:

3. Write a C program to print the following:
Welcome to
C Programming
Invented by
Denis Ritche

Output:

4. Write a C program to print the sum of two numbers.
OR
Write a program in C to add two numbers.

Output:

OR

Output:

5. Write A C program to add two numbers taking input from user.

Output:

OR

Output:

6. Write a C program to display Sum and Difference of two numbers.

Output:

OR

Output:

OR

Output:

7. Write  a program in C to store two integer values in two variables and using them calculate Addition, Subtraction, Multiplication and Division.

Output:

8. Write a program in C to find the average of three numbers.

Output:

9. Write a C program to calculate the square of a number.

Output:

10. Write a program in C to convert Rupees into Paisa.
OR
Write a C program to read the price of an item in rupees in decimal format and prints the output in paisa.
OR
Write a C program to read a price of an item in (float) like 10.25 and print output in (int) paisa like1025.
OR
Make a program in C to enter the amount in Rupees and print into paisa.

Output:

11. Write a program in C to find the Distance travelled in miles given the speed and time. The speed is 4.5 MPH and time is 2.1 sec.

Output:

12. Write a C program to find the Kinetic Energy of a particle. Given the Mass and Velocity as 14 and 3.

Output:

13. Write a program in C to calculate Kinetic Energy of a particle.

Output:

14. Write a C program to calculate total, average marks and percentage of 5 subjects of a student. Â


Output:

OR

Output:

15. Write a program in C to input name and marks of the student and print the statement of marks.


Output:

16. Write a program in C to print a pay-slip using the following data:
Employee Number is 100
BASIC Salary is 35000
DA must be calculated as 10% of BASIC
HRA must be calculated as 20% of BASIC
Total Salary must be calculated as BASIC+DA+HRA

Output:

17. The basic salary of an employee is input through the keyboard. The DA is 15% of the basic salary while the HRA is 25% of the basic salary. Write a program to in C calculate his total salary. Total Salary must be calculated as BASIC SALARY +DA+HRA.

Output:

OR

Output:

18. Write a C program to calculate simple interest.
Or
 Write a program in C to find the simple interest.

Output:

19. Write a C program to calculate the area of a triangle. (Formula: Area=1/2*Base*Height)

Output:

20. Write a program in C that calculates the area and perimeter (circumference) of a circle. (Formula: Area: πr2, π=22/7, Perimeter: 2πr)
OR
Write a C program to calculate and display the area and circumference (perimeter) of a circle by accepting the radius from the user.
OR
Write a program in C that calculates the area and circumference of a circle from its radius. The value of PI may be assigned to a variable or used as a constant in the calculation.

Output:

21. Write a C program to find area and perimeter of a square.
OR
Write a program in C that reads the side of a square and calculates the area and perimeter of square and prints them

Output:

22. Write a C program to calculate the volume of a sphere. (Formula: V = 4/3πr³, where V = volume and r = radius).

Output:

23. Write a C program to convert temperature from Celsius to Fahrenheit.

Output:

24. Write a program in C to convert the normal body temperature of a man from Fahrenheit to Celsius.
OR
Write a C program to convert temperature from Fahrenheit to Celsius degree.

Output:

25. Write a program in C to calculate and print the function value after evaluating:
y=x2 + 2x – 3 at x=4

Output:

26. The two memory variables a and b have the data values 6 and 17 respectively. Write a ‘C’ program that will make the variable a to have the content of b and b to have the content of a. In other words exchange the content of the variables. Â
Hint: Use a temporary variable to avoid any data loss.
OR
Write a C program to swapping two numbers using a temporary variable.

Output:

27. Write a C program to swap two numbers taking input from user.

Output:

28. Write a C program to swap two numbers without using third variable.

Output:

OR

Output:

29. Write a program in C to calculate sum of first n natural numbers.

Output:

30. Write a C program that reads days and converts the days into year, months, weeks and days. For example, 805 days equals 2 years, 2 months, 2 weeks and 1 days. (Ignore the leap year and consider 30 days in a month).
OR
Write a program in C to convert a given number of days to a measure of time given in years, months, weeks and days. Consider 365 days in a year (ignore leap year), and 30 days in a month.

Output:
