永发信息网

c语言动画程序会挥动翅膀飞行的小鸟代码,Tc2.0下可运行!代码私信!

答案:1  悬赏:80  手机版
解决时间 2021-03-27 09:43
  • 提问者网友:你给我的爱
  • 2021-03-26 14:23
c语言动画程序会挥动翅膀飞行的小鸟代码,Tc2.0下可运行!代码私信!
最佳答案
  • 五星知识达人网友:孤老序
  • 2021-03-26 14:29
#include  void main()
{
int Password=0,Number=0,price=58,i=0; while( Password != 1234 )
{
if( i >= 3 )
return;
i++;
puts("Please input Password: ");
scanf("%d",&Password);
} i=0;
while( Number!=price )
{
do{
puts("Please input a number between 1 and 100: ");
scanf("%d",&Number);
printf("Your input number is %d
",Number);
}while( !(Number>=1 && Number<=100) );
if( Number >= 90 )
{
printf("Too Bigger! Press any key to try again!
");
}
else if( Number >= 70 && Number < 90 )
{
printf("Bigger!
");
}
else if( Number >= 1 && Number <= 30 )
{
printf("Too Small! Press any key to try again!
");
}
else if( Number > 30 && Number <= 50 )
{
printf("Small! Press any key to try again!
");
}
else
{
if( Number == price )
{
printf("OK! You are right! Bye Bye!
");
}
else if( Number < price )
{
printf("Sorry,Only a little smaller! Press any key to try again!
"); }
else if( Number > price )
printf(" Sorry, Only a little bigger! Press any key to try again!
");
}
getch();
}
} 
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯