真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

c語言練習(xí)題-創(chuàng)新互聯(lián)

猜數(shù)游戲
#include#include#includevoid main() {
	int Password = 0, Number = 0, price = 58, i = 0;
	system("cls");
	printf("\n====This is a number Guess Game!====\n");
	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\n", Number);
		} while (!(Number >= 1 && Number<= 100));
		if (Number >= 90) {
			printf("Too Bigger ! Press any key to try again!\n");
		}
		else if (Number >= 70 && Number< 90) {
			printf("Bigger!\n");
		}
		else if (Number >= 1 && Number<= 30) {
			printf("Too Small! Press any key to try again!\n");
		}
		else if (Number >30 && Number<= 50) {
			printf("Small!Press any key to try again!\n");
		}
		else {
			if (Number == price) {
				printf("OK! You are right! Bye Bye!\n");
			}
			else if (Number< price) {
				printf("Sorry,Only a little smaller! Press any key to try again!\n");
			}
			else if (Number >price) {
				printf("Sorry, Only a little bigger!Press any key to try again!\n");
			}
		}getch();
	}

}


**```
附帶密碼
簡單c語言,用于聯(lián)系循環(huán),和if語句

你是否還在尋找穩(wěn)定的海外服務(wù)器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機(jī)房具備T級流量清洗系統(tǒng)配攻擊溯源,準(zhǔn)確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級服務(wù)器適合批量采購,新人活動首月15元起,快前往官網(wǎng)查看詳情吧

創(chuàng)新互聯(lián)主要從事成都網(wǎng)站設(shè)計、成都做網(wǎng)站、網(wǎng)頁設(shè)計、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)宿松,十多年網(wǎng)站建設(shè)經(jīng)驗,價格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):18980820575
本文標(biāo)題:c語言練習(xí)題-創(chuàng)新互聯(lián)
文章鏈接:http://weahome.cn/article/coopid.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部