问答详情
源自:3-2 算术运算符

大佬,求带

代码编辑器中 将7至11行的代码补全 运行结果如下  hello.c #include <stdio.h> int main() {     int x,y;     x = 10;     y = -3;     printf("x+y=%d\n",     );       printf("x-y=%d\n",     );     printf("x*y=%d\n",     );     printf("x/y=%d\n",     );。。这个应该是什么

提问者:慕雪7384373 2017-09-29 18:10

个回答

  • treehuang
    2017-09-29 18:19:00

    #include <stdio.h>

    int main()

    {

        int x,y;

        x = 10;

        y = -3;

        printf("x+y=%d\n", x+y );  

        printf("x-y=%d\n", x-y );

        printf("x*y=%d\n", x*y );

        printf("x/y=%d\n", x/y );

        printf("x%y=%d\n", x%y );  

        return 0;    

    }


  • 慕雪7384373
    2017-09-29 18:12:26

    代码编辑器中 将7至11行的代码补全 运行结果如下  hello.c #include <stdio.h>                                       int main()                                                   {     int x,y;     x = 10;     y = -3;                             printf("x+y=%d\n",     );                                    printf("x-y=%d\n",     );                                     printf("x*y=%d\n",     );                                  printf("x/y=%d\n",     );刚刚的看不清,这个是题目