list0403.c
来自「c21Examples.rar」· C语言 代码 · 共 30 行
C
30 行
/* Demonstrates the use of if statements */
#include <stdio.h>
int x, y;
int main( void )
{
/* Input the two values to be tested */
printf("\nInput an integer value for x: ");
scanf("%d", &x);
printf("\nInput an integer value for y: ");
scanf("%d", &y);
/* Test values and print result */
if (x == y)
printf("x is equal to y\n");
if (x > y)
printf("x is greater than y\n");
if (x < y)
printf("x is smaller than y\n");
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?