Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

IMSEC, Ghaziabad

Dept of MCA
List of programs-Introduction to C programming

1. WAP to print hello world.


2. Write a C program to input two numbers and perform all arithmetic operations like sum,
difference, product, quotient and modulus of two given numbers.
3. Write a C program to input length and width of a rectangle and calculate perimeter of the
circle.
4. Write a C program to input temperature in Centigrade and convert to Fahrenheit.
5. Write a C program to input principle, time and rate (P, T, R) from user and find Simple
Interest.
6. Write a C program to input marks of five subjects of a student and calculate total, average
and percentage of all subjects.
7. Write a C program to input a number and check whether number is even or odd using
Ternary operator.
8. Write a C program to input three numbers from user and find maximum between three
numbers using ternary operator.
9. Write a C program to input a character and check whether the character is alphabet or not
using ternary operator.
10. Accept any two numbers, if the first number is greater than second then print the sum of
these two; else print the difference. Write C program using ternary operator.

You might also like