标题:
C语言变量的差值怎么写?
[打印本页]
作者:
喵咪zzz
时间:
2022-5-2 15:59
标题:
C语言变量的差值怎么写?
循环一次得出:temp = 2;
循环二次得出: temp =4;
用语句怎么表示出同一个变量在这两次循环后的差值呢??
change = ????
作者:
IdeaMing
时间:
2022-5-2 16:59
char old;
char temp;
char change;
change = temp-old;
old = temp;
作者:
2766470543
时间:
2022-5-2 21:52
#include <stdlib.h>
int main(int argc, char *argv[])
{ int a,b; printf("请输入a和b两个数,并采用,分隔:"); scanf("%d,%d",&a,&b);
printf("a+b=%d",a+b); return 0; }
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1