09 2021 档案

输入 一个英文字母(A~X之间) 输出 英文字母表中,该字母后面的两个字母,不要换行。
摘要:#include<iostream>using namespace std;int main(){ char a; cin >> a; cout <<char(a+1)<<char(a+2); return 0;} 阅读全文

posted @ 2021-09-23 11:23 Leeeeeeeeeeeeee 阅读(186) 评论(0) 推荐(0)

输入 一个字符 输出 该字符对应的ASCII码,不要换行。
摘要:#include<iostream>using namespace std;int main(){ char a; cin >> a; cout << int(a); return 0;} 阅读全文

posted @ 2021-09-23 11:21 Leeeeeeeeeeeeee 阅读(873) 评论(0) 推荐(0)

输入 两个字符 输出 输出第一个字符,换行,再输出第二个字符,再换行。
摘要:#include<iostream>using namespace std;int main(){ char a,b; cin >> a >> b; cout << a << endl << b << endl; return 0;} 阅读全文

posted @ 2021-09-23 10:31 Leeeeeeeeeeeeee 阅读(422) 评论(0) 推荐(0)

输入 一个正的浮点数 输出 该浮点数的整数部分和小数部分,中间保留一个空格,不要换行
摘要:#include<iostream>using namespace std;int main(){ double a; cin >> a; cout << int(a) << " " << a - int(a); return 0;} 阅读全文

posted @ 2021-09-23 10:28 Leeeeeeeeeeeeee 阅读(391) 评论(0) 推荐(0)

输入 一个浮点数 输出 该浮点数的平方。不要换行。
摘要:#include<iostream> using namespace std; int main(){ float x; cin >> x; cout << x * x; return 0;} 阅读全文

posted @ 2021-09-18 17:32 Leeeeeeeeeeeeee 阅读(232) 评论(0) 推荐(0)

输入 两个正整数a和b 输出 a+b,a-b,a*b,a/b,a%b的结果,在同一行显示,每两个数字之间隔一个空格,最后不要换行
摘要:#include<iostream> using namespace std; int main(){ int x; int y; cin >> x >> y; cout << x + y << " " << x - y << " " << x * y << " " << x / y << " " 阅读全文

posted @ 2021-09-18 17:30 Leeeeeeeeeeeeee 阅读(977) 评论(0) 推荐(0)

输入 两个正整数,作为长方形的宽和高 输出 长方形的周长和面积,这两个数字要输出在同一行,中间用一个空格相隔,最后不要换行
摘要:#include<iostream> using namespace std; int main(){ int x; int y; cin >> x >> y; cout << x*2+ y*2<< " " << x*y; return 0;} 阅读全文

posted @ 2021-09-18 17:27 Leeeeeeeeeeeeee 阅读(436) 评论(0) 推荐(0)

输入 一个正整数n,作为正方形的边长 输出 正方形的周长和面积,这两个数字要输出在同一行,中间用一个空格相隔,最后不要换行 样例输入
摘要:#include<iostream> using namespace std; int main(){ int n; cin>>n; cout << n * 4 << " " << n * n; return 0;} 阅读全文

posted @ 2021-09-18 17:24 Leeeeeeeeeeeeee 阅读(322) 评论(0) 推荐(0)

输入两个整数m和n 输出 m和n的和,不要换行
摘要:#include<iostream> using namespace std; int main(){ int n; int m; cin >> n >> m; cout << n + m; return 0;} 阅读全文

posted @ 2021-09-18 17:20 Leeeeeeeeeeeeee 阅读(219) 评论(0) 推荐(0)

输入x输出x的两倍
摘要:#include<iostream>using namespace std;int main(){ int x; cin >> x; cout << x*2; return 0;} 阅读全文

posted @ 2021-09-17 16:59 Leeeeeeeeeeeeee 阅读(53) 评论(0) 推荐(0)

输入x输出x
摘要:#include<iostream>using namespace std;int main(){ int x; cin >> x; cout << x; return 0;} 阅读全文

posted @ 2021-09-17 16:57 Leeeeeeeeeeeeee 阅读(131) 评论(0) 推荐(0)

输出4行,第1行1个星号,第2行2个星号,第3行3个星号,第4行4个星号,第4行结尾处要换行
摘要:#include<iostream>using namespace std;int main(){ cout << "*" << endl; cout << "**" << endl; cout << "***" << endl; cout << "****" << endl;} 阅读全文

posted @ 2021-09-17 16:53 Leeeeeeeeeeeeee 阅读(465) 评论(0) 推荐(0)

输出(150+240)*35的结果
摘要:#include<iostream> using namespace std; int main() { cout << (150 + 240) * 35; return 0; } 阅读全文

posted @ 2021-09-17 16:49 Leeeeeeeeeeeeee 阅读(61) 评论(0) 推荐(0)

输出两行(第一行输出12345 第二行输出ABCDE 第二行最后也要换行)
摘要:#include<iostream> using namespace std; int main() { cout <<"12345" << endl; cout << "ABCDE" << endl; return 0; } 阅读全文

posted @ 2021-09-16 23:30 Leeeeeeeeeeeeee 阅读(248) 评论(0) 推荐(0)

输出ABCDE
摘要:#include<iostream> using namespace std; int main() { cout<<"ABCDE"; return 0; } 阅读全文

posted @ 2021-09-16 18:06 Leeeeeeeeeeeeee 阅读(83) 评论(0) 推荐(0)

输出12345
摘要:#include<iostream> using namespace std; int main() { cout<<"12345"; return 0; } 阅读全文

posted @ 2021-09-16 16:16 Leeeeeeeeeeeeee 阅读(44) 评论(0) 推荐(0)

输出Hello World!
摘要:#include<iostream> using namespace std; int main() { cout<<"hello world!"; return 0; } 阅读全文

posted @ 2021-09-16 16:04 Leeeeeeeeeeeeee 阅读(31) 评论(0) 推荐(0)

MARKDOWN语言学习
摘要:MARKDOWN学习 标题等级 一级标题 二级标题 三级标题 字体 斜体 LEE 加粗 LEE 斜体加粗 LEE 滑线 LEE 引用 今天学习markdown文本编译器 分割线 图片 链接 截图 超链接 点击跳转到凯里欧文简介 列表(先输入空格在输入数字!!!) 有序列表 无序列表 表格 姓名性别生 阅读全文

posted @ 2021-09-14 10:55 Leeeeeeeeeeeeee 阅读(61) 评论(0) 推荐(0)