这是一个有关C语言中算数运算的小例子
#include <stdio.h>
int main(void) {
int a = 99;
int b = 5;
int c = 11;
int d = 3;
printf("a-b=%d\n",a-b);
printf("b*c=%d\n",b*c);
printf("a/b=%d\n",a/b);
printf("a%b=%d\n",a%b);
printf("a%%d+b/c=%d\n",a%d+b/c);
}
如有错误,请指正。谢谢!