當前位置:編程學習大全網 - 電腦編程 - C語言基礎編程

C語言基礎編程

#include<stdio.h>

main()

{

int?a,b;

printf("Enter?two?intergers,?and?I?will?tell?you\n");

printf("the?relationshils?they?sctisfy:\n");

scanf("%d?%d",&a,&b);

if(a==b)printf("%d?is?equal?to?%d\n",a,b);

if(a!=b)printf("%d?is?not?equal?to?%d\n",a,b);

if(a<b)?printf("%d?is?less?than?%d\n",a,b);

if(a>b)?printf("%d?is?greater?than?%d\n",a,b);

if(a<=b)printf("%d?is?less?than?or?equeal?to?%d\n",a,b);

if(a>=b)printf("%d?is?greater?than?or?equeal?to?%d\n",a,b);

}

如圖所示,望采納。。。。。。

  • 上一篇:什麽是模塊化的PLC
  • 下一篇:陽泉十壹中和陽泉三中哪個好?
  • copyright 2024編程學習大全網