作业介绍

【例9.1】输出字符三角形

#include<bits/stdc++.h>//代码
using namespace std;
int main()
{
	char a;
	cin>>a;
	cout<<"  "<<a<<endl;
	cout<<" "<<a<<a<<a<<endl;
	cout<<a<<a<<a<<a<<a;
	return 0;
}
#include<iostream>
#include<iomanip>
using namespace std;

int main() {
	double zongFeng, gaoZong, diZong, gao, di, da;
	zongFeng = 9.6 * 6;
	gaoZong = 9.4 * 5;
	diZong = 5 * 9.8;
	gao = zongFeng - gaoZong;
	di = zongFeng - diZong;
	da = (zongFeng - gao - di) / 4;
	cout << setw(5) << fixed << setprecision(2) << da;
	return 0;
}
状态
已结束
题目
8
开始时间
2024-11-24 0:00
截止时间
2024-12-7 23:59
可延期
24 小时