正在加载图片...
例46将例45用 else if结构来实现。 main( i float score scanf(%f",&score); if(score>=90) printf("very goodn") else if(score=80)printf( "Goodn") else if(score>=60) printf("Passn") else printf( FailIn") 运行: 58 Fail例 4.6 将例4.5用else if结构来实现。 main( ) { float score; scanf(″%f″, &score); if(score>=90) printf(″Very Good\n″); else if (score>=80) printf(″Good\n″); else if(score>=60) printf(″Pass\n″); else printf(″Fail\n″); } 运行: 58 Fail
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有