摘要:
当循环涉及初始化和更新变量时,用for循环比较适合,而在其他情况下用while循环更好。 用while while (scanf(“%ld”,&num)==1) 对于涉及索引计数的循环用for fir (count = 1; count <= 100; count++) 阅读全文
posted @ 2021-01-23 17:33
吃鲨鱼的人
阅读(71)
评论(0)
推荐(0)
摘要:
#include <stdio.h>#include <math.h>int main(void){ const double ANSWER = 3.14159; double response; printf("What is the value of pi?\n"); scanf_s("%lf" 阅读全文
posted @ 2021-01-20 21:41
吃鲨鱼的人
阅读(119)
评论(0)
推荐(0)
浙公网安备 33010602011771号