Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.
![](https://rs.olm.vn/images/avt/0.png?1311)
#include <bits/stdc++.h>
using namespace std;
int main()
{
int i,a;
for (i=1; i<=10; i++)
{
do
{
cin>>a;
if (a%2==0) cout<<"Nhap lai";
} while (a%2!=0);
}
return 0;
}
![](https://rs.olm.vn/images/avt/0.png?1311)
TK:
uses crt;
var n: longint;
begin
clrscr;
readln(n);
if n mod 2 = 0 then writeln('Chan') else writeln('Le');
readln;
end.
#include<bits/stdc++.h>
using namespace std;
long long N;
int main()
{
cin>>N;
if(N%2==0) cout<<N<<" là số chẵn";
if(N%2!=0) cout<<N<<" là số lẻ";
}
![](https://rs.olm.vn/images/avt/0.png?1311)
#include <bits/stdc++.h>
using namespace std;
double a,b;
int main()
{
cin>>a>>b;
if (a+b>10) cout<<"YES";
else cout<<"NO";
return 0;
}
![](https://rs.olm.vn/images/avt/0.png?1311)
#include <bits/stdc++.h>
using namespace std;
long long a[10],n=10,i,t1,t2;
int main()
{
for (i=1; i<=n; i++) cin>>a[i];
for (i=1; i<=n; i++) cout<<a[i]<<" ";
cout<<endl;
t1=0;
t2=0;
for (i=1; i<=n; i++)
{
if (a[i]%2==0) t1+=a[i];
else t2+=a[i];
}
cout<<t1<<" "<<t2;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, f, g, h, i, j;
cin >> a >> b >> c >> d >> e >> f >> g >> h >> i >> j;
if(a%2==0)
cout << "Vui long thu lai" << endl;
else if(b%2==0)
cout << "Vui long thu lai" << endl;
else if(c%2==0)
cout << "Vui long thu lai" << endl;
else if(c%2==0)
cout << "Vui long thu lai" << endl;
else if(d%2==0)
cout << "Vui long thu lai" << endl;
else if(e%2==0)
cout << "Vui long thu lai" << endl;
else if(f%2==0)
cout << "Vui long thu lai" << endl;
else if(g%2==0)
cout << "Vui long thu lai" << endl;
else if(h%2==0)
cout << "Vui long thu lai" << endl;
else if(i%2==0)
cout << "Vui long thu lai" << endl;
else if(j%2==0)
cout << "Vui long thu lai" << endl;
else
cout << a << " " << b << " " << c << " " << d << " " << e << " " << f << " " << g << " " << h << " " << i << " " << j << endl;
return 0;
}
Chúc bn học tốt! (Mk định dùng kiểu mảnh nhưng nó bị lỗi nên mk dùng cách này, nó hơi dài mong bn thông cảm!)