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;
long long a,b;
int main()
{
cin>>a>>b;
cout<<a-2*b;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
long long x,y;
int main()
{
cin>>x>>y;
if (x>y) cout<<"x la so lon";
else cout<<"x khong la so lon";
return 0;
}
Var x,y:real;
Begin
Write('Nhap so a = ');readln(a);
Write('Nhap so b = ');readln(b);
If a > b then write(a,' la so lon')
Else write(a,' khong la so lon');
Readln;
End.
program DiemTB;
var
diemToan, diemVan, diemTB: real;
begin
write('Nhap diem mon Toan: ');
readln(diemToan);
write('Nhap diem mon Van: ');
readln(diemVan);
diemTB := (diemToan + diemVan) / 2;
writeln('Diem trung binh: ', diemTB:0:2);
if diemTB >= 5 then
writeln('Chuc mung! Ban da dau ky thi.')
else
writeln('Rat tiec! Ban da truot ky thi.');
readln;
end.
#include <bits/stdc++.h>
using namespace std;
double a,b,c,tb;
int main()
{
cin>>a>>b;
tb=(a+b)/3;
cout<<fixed<<setprecision(1)<<tb<<endl;
if ((tb>=5) and (a>=3) and (b>=3)) cout<<"Dau";
else cout<<"Rot";
return 0;
}
uses crt;
var s,i:integer;
begin
clrscr;
i:=1;
s:=1;
while s<=1000 do
begin
i:=i+1;
s:=s*i;
end;
writeln(s);
readln;
end.
??????????