You are on page 1of 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