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

Programming Set

Uploaded by

paawansilwal
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Programming Set

Uploaded by

paawansilwal
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Type 1

1. Write a c program to display Hello word.


2. Write a c program to input two numbers from user, find the sum and display it.
3. Write a c program to input two numbers from user, find the quotient and reminder than
display it.
4. Write a c program to perform addition, subtraction and multiplication of two numbers.
5. Write a c program to input a word from user and display it.
6. Write a c program to input four numbers from user, find the average and display it.
7.Write a c Program to input two angels of triangle from user, find the third angel and display
it.
8.Write a c program that takes hours and minutes as input, calculate the total number of
minutes and display it.
9.Write a c Program to input length and breadth from user, calculate the perimeter and area
than display it.
10.Write a c Program to input radios from user, calculate the area and perimeter than display
it.
11.Write a c Program to swap two numbers.
12.Write a c Program to input any word from user and display it.
13.Write a c Program to read a first name, last name and year of birth than display it one after
another sequentially.

Type 2

1. Write a program to check the given number is divisible by 10 or not.


2. Write a program to accept the age and it is eligible for vote or not.
3. Write a program to calculate profit and loss on a transaction.
4. Write a program to check the given number is divisible by 5 and 7 or not.
5. Write a program to check the given number is odd, even or zero.
6. Write a program to check the given number is positive, negative or zero.
7. Write a program to accept two numbers from the user and check they are equal or not.
8. Write a program to accept the age and it is eligible for vote or not.
9. Write a program to find largest number among three.
10.Write a c program to accept roll no, name and marks of three subjects and calculate the
total, percentage and division.
60< - First division
50-60 - Second division
40-50 - Third division
30-40 - Just pass
< 30 - Fail
11.Write a program to read temperature in centigrade and display a suitable massage
according to temperature state below.
Tem <0 Then freezing weather
Tem 0-10 Then very cold weather
Tem 10<20Then cold weather
Tem 20<30 Then normal in temperature
Tem 30<40 Then very it is hot
Tem >=40 Then very it is very hot

12.Write a program to find a given year is leap year or not.


13.Write a program to find middle number among three.

You might also like