求a1,a2两个数的积
#include<iostream>
using namespace std;
int main()
{
int a1,a2,result;
cout<<"Please input two numbers:\n";
cin>>a1>>a2;
result=a1*a2;
cout<<"result is:"<<result<<endl;
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int a1,a2,result;
cout<<"Please input two numbers:\n";
cin>>a1>>a2;
result=a1*a2;
cout<<"result is:"<<result<<endl;
return 0;
}
本文标题:求两个数的积
本文链接:https://www.haomeiwen.com/subject/oyspgftx.html
网友评论