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$ 

猜你喜欢

转载自blog.csdn.net/weixin_42528089/article/details/83579017