下列程序的功能是:给r输入数据后计算半径为r的圆面积s。程序在编译时出错。 main() { int r; float s; scanf("%d",&r); s=pi*r*r; printf("s=%f\n",s); } 出错的原因是()。 A. 注释语句书写位置错误 B. 存放圆半径的变量r不应该定义为整型 C. 输出语句中格式描述符号非法 D. 计算圆面积的赋值语句中使用了非法变量
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【简答题】用一句话总结Text A 第二段的中心思想。请用英语回答。 Text A 第二段原文: Corn, which is a grain, was grown long before the Europeans reached the New World. Native Americans raised many kinds; for example, sweet corn, popcorn, col...
【简答题】用一句话总结Text A 第三段的中心思想。请用英语回答。 Text A 第三段原文: The potato, like corn, is also prepared in a vast kind of imaginative dishes. They can be baked,boiled,fried,or mashed. The potato can also be processed and...
【简答题】用一句话总结Text A 第四段的中心思想。请用英语回答。 Text A 第四段原文: Both corn and potatoes have been proven to be also high in nutrition. The potato for example,is an excellent source needed for energy. They also contain a g...