正在加载图片...
改写例3-1中的判断过程,用else-if实现if(yournumber==mynumber)/*若相等,显示猜中*/printf("Ok! you are right!\n");/*若不等,比较大小*elseif(yournumber > mynumber )printf("Sorry! your number is bigger than my number!\n');elseprintf("Sorry! your number is smaller than my number!\n");if(yournumber == mynumber)printf("Ok! you are right!n");elseif(yournumber>mynumber)printf("Sorry! your number is bigger than my number!In");elseprintf("Sorry! your number is smaller than my number!/n");改写例3-1中的判断过程,用else-if实现 . if(yournumber == mynumber) printf("Ok! you are right!\n”); else if(yournumber > mynumber ) printf("Sorry! your number is bigger than my number!\n"); else printf("Sorry! your number is smaller than my number!\n"); . . if(yournumber == mynumber) /* 若相等,显示猜中 */ printf("Ok! you are right!\n"); else /* 若不等,比较大小 */ if(yournumber > mynumber ) printf("Sorry! your number is bigger than my number!\n"); else printf("Sorry! your number is smaller than my number!\n");
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有