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.
#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!)
#include <bits/stdc++.h>
using namespace std;
long long m,n,i;
int main()
{
cin>>m>>n;
for (i=m; i<=n; i++)
if (i%2==1) cout<<i<<" ";
return 0;
}
program vdd;
uses crt;
var i,n: integer;
begin
clrscr;
write('Nhap N: '); readln(n);
for i:=1 to n do if i mod 2=1 then write(i,';');
readln
end.
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ẻ";
}
Program Tin_hoc;
Uses Crt;
Var N: Integer;
Begin
Write('Nhap so nguyen N');
Readln(N);
If N>0 then write(' So do la so duong ');
If N<0 then write(' So do la so am ');
If N=0 then write(' So do khong la so am va so duong');
Readln;
End.
Program Tin_hoc;
Uses Crt;
Var N: Integer;
Begin
Write('Nhap so nguyen N');
Readln(N);
If N>0 then write(' So do la so duong ');
If N<0 then write(' So do la so am ');
If N=0 then write(' So do khong la so am va so duong');
Readln;
End.
#include<bits/stdc++.h>
using namespace std;
int a,b,c;
int main(){
cin>>a>>b>>c;
if((a+b)>c||(a+c)>b||(b+c)>a) cout<<"Yes";
else cout<<"No";
}
uses crt;
var n,i:integer;
begin
clrscr;
readln(n);
for i:=0 to n do
if i mod 2=0 then write(i:5);
readln;
end.
#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;
}