C语言填空:程序段后变量的值

#include <stdio.h>
//执行程序段后,变量s的值为() 
main()
{
    int a=10,s=0;
    do
    {
        s=s+a;
        a++;
     } while(a<1);
    getchar();
}
#include <stdio.h>
//执行程序段后,变量s的值为(10) 
main()
{
    int a=10,s=0;
    do
    {
        s=s+a;
        a++;
     } while(a<1);
    getchar();
}

 

posted @ 2023-02-10 09:25  myrj  阅读(19)  评论(0编辑  收藏  举报