PGM 1,2,3
PGM 1,2,3
Ouput:
Enter the radius : 3
Area is 28.26
Circumference is 18.84
2. Write a C Program to read three numbers
and find the biggest of the three numbers
#include<stdio.h>
#include<conio.h>
void main()
{
int n1,n2,n3;
clrscr();
printf("Enter three numbers: ");
scanf("%d %d %d",&n1,&n2,&n3);
if(n1>n2 && n1>n3)
printf("%d is the largest number",n1);
else if(n2>n1 && n2>n3)
printf("%d is the largest number",n2);
else
printf("%d is the largest number",n3);
getch();
}
Ouput:
Enter three numbers: 23 43 11
43 is the largest number
getch();
}
Ouput:
Enter the percentage of marks: 65
FIRST CLASS