c语言程序设计 第一例子

#include <studio.h>

int main(){

printf("this is  dog. ");

return 0;

}

studio.h

表示standard  input 和 output 的缩写   后缀.h是头文件意思header

  是换行符

第二例子:

#include <studio.h>

int main(){

int max(int x,int y);

int a,b,c;

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

c=max(a,b);

printf("max=%d ",c);

return 0;

}

int max(int x,int y){

int z;

if (x>y)z=x;

else z=y;

return(z);

}

}

原文地址:https://www.cnblogs.com/1314520xh/p/7823353.html