语法结构
1.
#include<stdio.h>
int main ()
{
if(i<o) //if(表达式)
ptintf("你好"); //语句
return 0;
}
2.
#include<stdio.h>
int main ()
{
int a=11;
if(a<10) //if(表达式)
printf("你好"); //语句
else //else
printf("看来你不怎么好呀“);//语句
return 0;
}
3.
#include<stdio.h>
int main ()
{
int a=0;
if(a<0)
printf("你好");
else
{
if(a>0&&a<18)
printf("你还好吗");
else if(a>18&&a<60)
printf("你看起来焦头烂额");
}
return 0;
}
标签:语句,11,include,int,.#,&&,main
From: https://blog.51cto.com/u_16251033/7420301