问题详情
有以下程序#include <stdio.h>main(){ int num=0; while(num <=2) { num++; printf("%d\n",num); }}上面程序的输出结果是
A.1
B.1
2
C.1
3
D.1
4
请帮忙给出正确答案和分析,谢谢!