课程
/后端开发
/C
/C语言入门
printf("x%%y=%d\n", x%y );为什么需要2个%%号
2019-09-03
源自:C语言入门 3-2
正在回答
是为了表示可以输出x%y
举报
C语言入门视频教程,带你进入编程世界的必修课-C语言
1 回答 printf("x%%y=%d\n",x%y );与 printf("x%y=%d\n",x%y );
2 回答#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;
2 回答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;
1 回答printf("x+y=%d\n",x+y);
2 回答printf("x%y=%d\n",x%y);