C-Programming Laboratory Practice Programs: - Rutvik Sheth
C-Programming Laboratory Practice Programs: - Rutvik Sheth
-Rutvik Sheth
M.Tech (Structures)
D.D.U, Nadiad
Sample Program-1
#include <stdio.h>
#include <conio.h>
void main( )
{
printf(“My First C Program”);
}
------------------------------------------
Note : Press Alt+F9 to Compile
Ctrl+F9 to Run
Alt+F5 to view the Output
2
Rutvik Sheth
Sample Program-2
#include <stdio.h>
#include <conio.h>
void main( )
{
int a, b, ans;
a = 5;
b = 10;
ans = a * b;
printf(“Answer is %d”,ans);
}
3
Rutvik Sheth
Practice programs
Write a program to print your details (i.e name, age,
city, contact no. etc).
Write a program to find area of rectangle.
Write a program to volume of a cylinder.
Write a program to calculate simple interest.
Write a program to compute temperature in Fahrenheit
from Centigrade
Write a program to calculate final velocity of a vehicle
at time 50 sec whose initial velocity is 5 m/s and
acceleration is 1 m/s2.
4
Rutvik Sheth
Thank you
5
Application of Neural Network for Design of RCC Column