本文共 516 字,大约阅读时间需要 1 分钟。
小程序获取地图圆的半径
#include<stdio.h>
#include<conio.h>
void main()
{
float radius,area;
clrscr(); //to clear the screen
printf(“Enter radius of the circle:”);
scanf(“%f”,&radius);
area=3.14*(radius*radius);
printf(“Area=%f”,area);
getch(); //to stop the screen
}
#include<stdio.h>
#include<conio.h>
void main()
{
float radius,area;
clrscr(); //to clear the screen
printf(“Enter radius of the circle:”);
scanf(“%f”,&radius);
area=3.14*(radius*radius);
printf(“Area=%f”,area);
getch(); //to stop the screen
}
翻译自:
小程序获取地图圆的半径
转载地址:http://rrwwd.baihongyu.com/