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

C-Lab_Task3

The document outlines laboratory practice programs for C programming, including tasks such as calculating the perimeter of a circle, computing equivalent resistance of parallel resistors, determining distance traveled by a car, and calculating average marks for a student. It provides syntax for the 'scanf' function to read input values. The document is authored by Rutvik Sheth, an M.Tech student at D.D.U, Nadiad.

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_Task3

The document outlines laboratory practice programs for C programming, including tasks such as calculating the perimeter of a circle, computing equivalent resistance of parallel resistors, determining distance traveled by a car, and calculating average marks for a student. It provides syntax for the 'scanf' function to read input values. The document is authored by Rutvik Sheth, an M.Tech student at D.D.U, Nadiad.

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 perimeter of a circle.
 Two resistors are R1 and R2 are connected in parallel
with each other. Write a program to compute
equivalent resistant Req of the circuit. (R1 and R2
values should be read by ‘scanf’ function.
 Write a program to calculate the distance travelled by
a car at time 45 sec, given the initial velocity 10 m/s
and acceleration 7 m/s2.
 Write a program to compute average marks for a
student of his marks in 5 subjects. Use ‘scanf’
Rutvik Sheth
2
SYNTAX OF SCANF FUNCTION:
 To scan a variable ‘a’ of datatype int, syntax is
scanf(“%d”, &a);

 To scan a variable ‘b’ of datatype float, syntax is


scanf(“%f”, &b);

3
Rutvik Sheth
Thank you

4
Application of Neural Network for Design of RCC Column

You might also like