慕移动3544609
2018-06-08 15:13
#include
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; } 请问这哪里错了#include
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; }
要加加一个%
不然以为是一个格式
C语言入门
926021 学习 · 20793 问题
相似问题