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.
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.
#include <bits/stdc++.h>
using namespace std;
double a,b;
int main()
{
cin>>a>>b;
if (b==0) cout<<"Ko tinh duoc";
else
{
cout<<a+b<<endl;
cout<<a-b<<endl;
cout<<a*b<<endl;
cout<<a/b;
}
return 0;
}
uses crt;
var a, b: logint;
Begin
write('nhap so a ='); Readln(a);
write('nhap so b ='); readln(b);
If (a = 0 and b = 0)
then write ('pt co nghiem x thuoc R')
else
if (a=0 and b#0) then write('pt vo nghiem')
else
write(nghiẹm la x=': -b/a);
readln
end.
uses crt;
var a, b: logint;
Begin
write('nhap so a ='); Readln(a);
write('nhap so b ='); readln(b);
If (a = 0 and b = 0)
then write ('pt co nghiem x thuoc R')
else
if (a=0 and b#0) then write('pt vo nghiem')
else
write(nghiẹm la x=': -b/a);
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";
#include <bits/stdc++.h>
using namespace std;
long long a,b;
int main()
{
cin>>a>>b;
if (a%b==0) cout<<"Co";
else cout<<"Khong";
return 0;
}
#include <bits/stdc++.h>
using namespace std;
double a,b;
int main()
{
cin>>a>>b;
if (b!=0) cout<<a/b;
else cout<<"b khong thoa man dieu kien";
return 0;
}