wrote this program for Calculate the area of the circle but wants The answer will be
wrote this program for Calculate the area of the circle program ready working but wants The answer will be displayed on The answer will be displayed
on the New DOS screen Who can help me؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ ؟؟؟؟
program is ready working so just tell me what function must be use to
answer will be displayed on the new DOS screen only:
Code:
#include <stdio.h>
#include <conio.h>
float area(float);
int main()
{
float r, s;
clrscr();
printf("press enter to program start:");
getchar();
printf("\nenter the radius:");
scanf("%f", &r);
s = area(r);
printf("\narea = %5.2f", s);
getch();
return 0;
}
//***********************
float area(float r)
{
float s;
s = r * r * 3.14;
return s;
}