#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
int main() {
system("color BA");
cout<<"竖式计算机已启动.";
Sleep(500);
system("cls");
cout<<"竖式计算机已启动..";
Sleep(500);
system("cls");
cout<<"竖式计算机已启动...";
Sleep(500);
system("cls");
cout<<"竖式计算机已启动.";
Sleep(500);
system("cls");
cout<<"竖式计算机已启动..";
Sleep(500);
system("cls");
cout<<"竖式计算机已启动...";
Sleep(500);
system("cls");
cout<<"竖式计算机已启动.";
Sleep(500);
system("cls");
cout<<"竖式计算机已启动..";
Sleep(500);
system("cls");
cout<<"竖式计算机已启动...";
Sleep(500);
system("cls");
int a;
for(a=0;a<=0;a=a+0){
cout<<"输两个十位数吧!!!";
Sleep(2000);
system("cls");
int b,c;
cin>>b>>c;
system("cls");
if(b>=10&&b<=99&&c>=10&&c<=99){
if(b%10!=0&&c%10!=0){
cout<<b<<"*"<<c<<"="<<b*c<<endl;
cout<<"----竖式----"<<endl;
cout<<" "<<b<<endl;
cout<<"*"<<c<<endl;
cout<<"------"<<endl;
cout<<" "<<b*(c%10)<<endl;
cout<<b*(c/10)<<""<<endl;
cout<<"------"<<endl;
cout<<b*c<<endl;
Sleep(8000);
system("cls");
}if(b%10==0&&c%10!=0){
cout<<b<<"*"<<c<<"="<<b*c<<endl;
cout<<"----竖式----"<<endl;
cout<<" "<<c<<endl;
cout<<"* "<<b<<endl;
cout<<"------"<<endl;
cout<<b*c<<endl;
Sleep(5000);
system("cls");
}if(c%10==0&&b%10!=0){
cout<<b<<"*"<<c<<"="<<b*c<<endl;
cout<<"----竖式----"<<endl;
cout<<" "<<b<<endl;
cout<<"* "<<c<<endl;
cout<<"------"<<endl;
cout<<b*c<<endl;
Sleep(5000);
system("cls");
}if(b%10==0&&c%10==0){
cout<<b<<"*"<<c<<"="<<b*c<<endl;
cout<<"---此题无竖式---"<<endl;
Sleep(2000);
system("cls");
}
}else{
cout<<"你干嘛~啊"<<endl;
Sleep(2000);
system("cls");
}
}
return 0;
}
竖式计算来喽
于 2025-03-28 20:21:20 首次发布