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

C-Lab_Task6

The document outlines a series of C programming laboratory exercises authored by Rutvik Sheth for M.Tech students. It includes tasks such as determining leap years, checking triangle types, finding the smallest integer, assigning grades, creating a simple calculator, and using switch cases for day display and quadratic equations. The document serves as a practical guide for students to enhance their programming skills in C.

Uploaded by

Rutvik Sheth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

C-Lab_Task6

The document outlines a series of C programming laboratory exercises authored by Rutvik Sheth for M.Tech students. It includes tasks such as determining leap years, checking triangle types, finding the smallest integer, assigning grades, creating a simple calculator, and using switch cases for day display and quadratic equations. The document serves as a practical guide for students to enhance their programming skills in C.

Uploaded by

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

C-Programming – I

Laboratory practice
programs

-Rutvik Sheth
M.Tech (Structures)
D.D.U, Nadiad
WRITE THE FOLLOWING PROGRAMS IN YOUR
NOTEBOOK AND THEN EXECUTE THEM:
 Write a program to find whether a given year is a leap year
using ‘simple if else’.
 Given the three sides of a triangle, write a program to find
whether the triangle is right angled or not using ‘simple if else’.
 Write a program to find out the smallest integer out of given
three integers ‘nested if else’.
 Write a program to assign Grade to a student based on his total
percentage using ‘elseif ladder’.
 Write a program to make simple calculator using ‘elseif ladder’.

2
Rutvik Sheth
 Write a program that reads a number from 1 to 7 and
accordingly it should display MONDAY to SUNDAY using
‘Switch case’
 Write a program to find roots of a Quadratic equation using
‘Switch case’.

3
Rutvik Sheth
Thank you

4
Application of Neural Network for Design of RCC Column

You might also like