Write a program to input the radius value from the keyboard and calculate the area of circle and print the result in both floating and exponential notation.
#include<stdio.h>
#include<conio.h>
void main()
{
int r;
float area;
clrscr();
printf("input the radius of circle");
scanf("%d",&r);
area=3.14*r*r;
printf("%f",area);
getch();
}
output
input the radius of circle7
153.86001
#include<stdio.h>
#include<conio.h>
void main()
{
int r;
float area;
clrscr();
printf("input the radius of circle");
scanf("%d",&r);
area=3.14*r*r;
printf("%f",area);
getch();
}
output
input the radius of circle7
153.86001
Hey annu mere ko v sikha do ye sb
ReplyDeleteOkh
DeleteGreat Job😍😍
ReplyDeleteGood
ReplyDeleteSuperr
ReplyDeleteGd
ReplyDeleteGd
ReplyDelete