Wednesday, October 30, 2019

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

7 comments:

2004 1.       A.   True or false:- 1.       The part of the computer that executes program instruction known as memory.- False 2.  ...