#include <stdio.h>
int main()
{
const int MINOR = 35;
int age = 0;
printf("请输入你的年龄:");
scanf("%d",&age);
if(age <= MINOR){
printf("年轻就是努力的资本!加油吧骚年!\n");
}
printf("你的年龄是%d岁,年龄决定了你的精神世界,好好珍惜吧!",age);
return 0;
}
C语言if语句学习,判断年龄并且提示语句!
最新推荐文章于 2023-10-26 20:55:11 发布