Practical List For Week 2
Practical List For Week 2
Program 1:
// C program to show input and output
#include<stdio.h>
#include<conio.h>
void main()
{
getch();
}
Program 2
void main()
{
// Integer value with positive data.
int a = 9;
getch();
}
Program 3:
void main()
{
float a = 9.0f;
float b = 2.5f;
// 2x10^-4
float c = 2E-4f;
printf("%f\n", a);
printf("%f\n", b);
printf("%f", c);
getch();
}
Program 4:
// C Program to demonstrate
// use of double data type
#include<stdio.h>
#include<conio.h>
void main()
{
double a = 123123123.00;
double b = 12.293123;
double c = 2312312312.123123;
printf("%lf\n", a);
printf("%lf\n", b);
printf("%lf", c);
getch();
}
Program 5:
getch();
}
Program 6:
#include <stdio.h>
#include<conio.h>
void main()
{
getch();
}