#include<stdio.h> int main() { double r,s; /*定义两个变量*/ printf("Enter r:"); scanf("%Lf",&r); if(r<=0) { printf("Sorry! it is wrong!"); } else { s=3.1415926*r*r; printf("s=%.2f\n",s); } return 0; }
posted on 2013-10-14 09:30 大叔控727 阅读(69) 评论(0) 编辑 收藏 举报