0% found this document useful (0 votes)
80 views2 pages

C Programming: Lab Assignment 1

This document outlines 23 programming assignments for a C programming lab. The assignments include writing programs to print personal information, calculate geometric shapes, convert between units of time and distance, find maximum/minimum values, check divisibility and remainders, and print sequences of numbers with specified conditions.

Uploaded by

ZEE Episodes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views2 pages

C Programming: Lab Assignment 1

This document outlines 23 programming assignments for a C programming lab. The assignments include writing programs to print personal information, calculate geometric shapes, convert between units of time and distance, find maximum/minimum values, check divisibility and remainders, and print sequences of numbers with specified conditions.

Uploaded by

ZEE Episodes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

C Programming: Lab Assignment 1

1. Write a C program to print your name, date of birth and mobile number. 
2. Write a C program to compute the perimeter and area of a rectangle with a height of 7
inches and width of 5 inches. 
3. Write a C program to compute the perimeter and area of a circle with a radius of 6
inches. 
4. Write a C program to convert specified days into years, month, weeks and days.  (Note:
Ignore leap year.)
5. Write a C program that accepts two integers from the user and calculate the sum of the
two integers. 
6. Write a C program that accepts three integers and find the maximum of three. 
7. Write a C program to calculate the distance between the two points (Cartesian). 
8. Write a C program to convert a given integer (in seconds) to hours, minutes and seconds. 
9. Write a C program to convert a given integer (in days) to years, months and days,
assumes that all months have 30 days and all years have 365 days.
10. Write a C program that reads two integers and checks if they are multiples or not.
11. Write a C program that read 5 numbers and counts the number of positive numbers and
negative numbers. 
12. Write a C program to check a given integer is positive even, negative even, positive odd
or negative odd.
13. Write a C program to print all numbers between 1 to 100 which divided by a specified
number and the remainder will be 3.
14. Write a C program that accepts some integers from the user and find the highest value
and the input position.
15. Write a C program to read the coordinates(x, y) (in Cartesian system) and find the
quadrant to which it belongs.
16. Write a program that reads two numbers and divide the first number by second number. If
the division not possible print "Division not possible". 
17. Write a C program to print a number, its square and cube in a line, starting from 1 and
print n lines. Accept number of lines (n, integer) from the user. 
18. Write a C program that accepts principle, rate of interest, time and compute the simple
interest. 
19. Write a C program that accepts a distance in centimeters and prints the corresponding
value in inches. 
20. Write a C program to reverse and print a given number.
21. Write a C program that accepts a positive integer less than 500 and prints out the sum of
the digits of this number.
22. Write a C program that reads an integer between 1 and 12 and print the month of the year
in English
23. Write a C program that prints all even numbers between 1 and 50.

You might also like