慕移动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语言入门
926207 学习 · 20797 问题
相似问题