国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > C++ > 正文

c++作業一

2019-11-06 07:02:37
字體:
來源:轉載
供稿:網友
一、問題及代碼
#include<iostream>#include<cmath>int main(void){	using namespace std; 	int x1,y1,x2,y2;	int a,b;	double l;	cin>>x1>>y1>>x2>>y2;	l=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));	cout<<l<<endl;	return 0;	}

二、運算結果

三、問題及代碼

#include<iostream>#include<cmath>int main(void){	using namespace std; 	float weight,height,standard;	cin>>height>>weight;	standard=height-100;	if(weight>(standard+standard*0.2))	cout<<"超重"<<endl;	else if(weight<(standard-standard*0.2))	cout<<"超輕"<<endl;	else cout<<"正常"<<endl;	return 0;	}

四、運算結果


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 泰宁县| 河池市| 竹山县| 弋阳县| 沁阳市| 岐山县| 石家庄市| 南和县| 东明县| 玉龙| 常熟市| 双牌县| 易门县| 博湖县| 洪雅县| 中牟县| 静乐县| 阿合奇县| 巴青县| 中宁县| 吉首市| 玉树县| 合山市| 香港 | 广宗县| 新余市| 敦煌市| 平江县| 金平| 剑阁县| 吴桥县| 天镇县| 登封市| 宿迁市| 洮南市| 重庆市| 宜城市| 宁强县| 临西县| 奈曼旗| 长沙市|