为啥后面直接加数字就不行了?
#include
int main() { int x,y; x = 10; y = -3; printf("x+y=%d\n", "10,-3" ); printf("x-y=%d\n", "10,-3" ); printf("x*y=%d\n", "10,-3" ); printf("x/y=%d\n", "10,-3" ); printf("x%y=%d\n", "10,-3" ); return 0; } 为啥后面直接加数字就不行?#include
int main() { int x,y; x = 10; y = -3; printf("x+y=%d\n", "10,-3" ); printf("x-y=%d\n", "10,-3" ); printf("x*y=%d\n", "10,-3" ); printf("x/y=%d\n", "10,-3" ); printf("x%y=%d\n", "10,-3" ); return 0; } 为啥后面直接加数字就不行?2017-11-28
举报