//c how to program 习题2.16
#include <stdio.h>
int main(void)
{
int x, y;
printf("请分别输入两个整数:");
scanf("%d%d",&x,&y);
printf("它们的积是:%d\n", x*y);
printf("它们的和是:%d\n", x+y);
printf("它们的商是:%d\n", x/y);
p ...
//c how to program 习题2.4
#include <stdio.h>
int main(void)
{
int x, y, z;
printf("请分别输入三个整数:");
scanf("%d%d%d", &x,&y,&z);
int result=x*y*z;
printf("这三个整数的积是:%d\n", result);
}
//c how to program 习题2.3
#include <stdio.h>
int main (void)
{
printf("请输入一个整数:");
int number;
scanf("%d", &number);
if (number != 7){
printf("The variable number is not equal to 7.\n");
}
pri ...