eg:
#include<stdio.h>
int main()
{
int a, b;
int sum;
scanf_s("%d%d",&a,&b);
sum = a + b;
printf("sum = %d\n", sum);
return 0;
}
scanf函数和printf函数的使用
eg:
#include<stdio.h>
int main()
{
int a, b;
int sum;
scanf_s("%d%d",&a,&b);
sum = a + b;
printf("sum = %d\n", sum);
return 0;
}
scanf函数和printf函数的使用