1. 程式人生 > >linux 下執行C程式

linux 下執行C程式

#include<stdio.h>
int main(){
    int a=100,b=25;
    if(a>b)
          printf(" The high value is %d\n",a);
     else 
          printf(" The high value is %d\n",b);
     return 0;
}

 用指令執行

:~/Desktop$ gcc aa.c -o aa
:~/Desktop$ ./aa
 The high value is 100
:~/Desktop$