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 a;
int main()
{
cin>>a;
if (a>10) cout<<"ban nhap so lon hon 10";
else cout<<"ban nhap so nho hon 10";
return 0;
}
a)
uses crt;
var i,n:integer;
begin
clrscr;
repeat
write('Nhap n='); readln(n);
until n<100;
if n mod 2=0 then
begin
for i:=0 to n do
if i mod 2=0 then write(i:4);
end
else writeln(n,' khong la so chan');
readln;
end.
b)
uses crt;
var i,n:integer;
begin
clrscr;
repeat
write('Nhap n='); readln(n);
until n<100;
if n mod 2=1 then
begin
for i:=1 to n do
if i mod 2=1 then write(i:4);
end
else writeln(n,' khong la so le');
readln;
end.
if (b%2==0) cout<<"b la so chan";
if (b%2==1) cout<<"b la so le";
if (b%2==0) cout<<"b la so chan";
if (b%2==1) cout<<"b la so le";
if (b%2==0) cout<<"b la so chan";
else cout<<"b la so le";
uses crt;
var a,b:integer;
begin
clrscr;
readln(a,b);
if (a>0) and (b>0) then writeln(a*b)
else writeln('Nhap lai');
readln;
end.
uses crt;
var a,b:integer;
begin
clrscr;
write('a='); readln(a);
write('b='); readln(b);
if b=0 then writeln('khong co phep chia cho 0')
else writeln('thuong cua phep chia ',a,' cho ',b,' la: ',a/b:4:2);
readln;
end.
program ho_tro;
uses crt;
var a,b,c: real;
begin
clrscr;
writeln(' nhap a va b:'); readln(a,b);
if b<>0 then c:=a/b
else writeln(' loi yeu cau nhap lai:');
writeln(' ket qua cua a chia b la:',c);
readln;
end.