#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<a*b;
return 0;
}
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int a;
cin>>a;
if(a%1 == a)
{
cout<<"no";
}
else
{
cout<<"yes";
}
return 0;
}
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int n,k;
cin>>n>>k;
int sim;
for(int i = 0;i<=n;i++)
{
int g = i%10;
int s = i/10%10;
int b = i/100%10;
if(i/7 == 0||g == 7||s == 7||b == 7)
{
sim = sim + i;
}
}
cout<<sim;
return 0;
}
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int n;
cin>>n;
int sim;
for(int i = n;i<=0;i--)
{
for(int j = i;i<=0;j--)
{
if(i/j == 0)
{
sim = sim+i;
}
}
if(sim>=2)
{
cout<<i;
return 0;
}
else
{
sim = 0;
}
}
}
文章来源:https://www.toymoban.com/news/detail-688067.html
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<b<<" "<<a;
}文章来源地址https://www.toymoban.com/news/detail-688067.html
到了这里,关于c++一级练习题(1)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!