Signed-off-by: 10-4 <10-4@sairate.fun>

This commit is contained in:
10-4 2024-07-16 18:19:51 +08:00
parent b1a52e2d74
commit 3d5832b39f
8 changed files with 36 additions and 1 deletions

View File

@ -1,6 +1,10 @@
#include<iostream>
using namespace std;
int main() {
cout<<"My name is yizhiyinbao";
int a,b,c;
cin>>a;
cin>>b;
cout<<(a+b)*2<<endl;
cout<<a*b;
return 0;
}

Binary file not shown.

12
两个数的计算.cpp Normal file
View File

@ -0,0 +1,12 @@
#include<iostream>
using namespace std;
int main() {
int x,y;
cin>>x;
cin>>y;
cout<<"x+y="<<x+y<<endl;
cout<<"x-y="<<x-y<<endl;
cout<<"x*y="<<x*y<<endl;
cout<<"x/y="<<x/y;
return 0;
}

BIN
两个数的计算.exe Normal file

Binary file not shown.

8
景区门票计算.cpp Normal file
View File

@ -0,0 +1,8 @@
#include<iostream>
using namespace std;
int main() {
int x,y,z;
cin>>x>>y>>z;
cout<<x*120+y*60+z*72;
return 0;
}

BIN
景区门票计算.exe Normal file

Binary file not shown.

11
跑步时间.cpp Normal file
View File

@ -0,0 +1,11 @@
#include<iostream>
using namespace std;
int main() {
int n;
cin>>n;
int s=n%60;
int m=n/60%60;
int h=n/60/60;
cout<<h<<" "<<m<<" "<<s;
return 0;
}

BIN
跑步时间.exe Normal file

Binary file not shown.