c语言基本编程题.docVIP

  • 14
  • 0
  • 约1.31万字
  • 约 17页
  • 2021-05-12 发布于未知
  • 举报
PAGE PAGE 1 第 页 共 NUMPAGES 6 页 C程序设计编程题 1.输入2个整数,求两数的平方和并输出。 #include stdio.h void main() { intt a ,b,s; printf(please input a,b:\n); scanf(%d%d”,a,b); s=a*a+b*b; printf(the result is %d\n,s); } 2. 输入一个圆半径(r),当r=0时,计算并输出圆的面积和周长,否则,输出提示信息。 #include stdio.h

文档评论(0)

1亿VIP精品文档

相关文档