nhập 2 số a và b. tính tổng, hiệu, tích và thương của hai số đó
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);
writeln(a+b);
writeln(a-b);
writeln(a*b);
writeln(a/b:4:2);
readln;
end.

#include <bits/stdc++.h>
using namespace std;
double a,b,t,h,s,thuong;
int main()
{
cin>>a>>b;
t=a+b;
h=a-b;
s=a*b;
thuong=a/b;
cout<<fixed<<setprecision(2)<<t<<endl;
cout<<fixed<<setprecision(2)<<h<<endl;
cout<<fixed<<setprecision(2)<<s<<endl;
cout<<fixed<<setprecision(2)<<thuong;
return 0;
}

#include <bits/stdc++.h>
using namespace std;
long long a,b;
int main()
{
cin>>a>>b;
cout<<a+b<<endl;
cout<<a-b<<endl;
cout<<a*b<<endl;
cout<<fixed<<setprecision(1)<<(a*1.0)/(b*1.0);
return 0;
}

#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;
}

program tong;
uses crt;
var M, N, S, i: integer;
begin
clrscr;
write ('Nhap M= '); readln(M);
write ('Nhap N= '); readln(N);
s : = 0;
for i := M to N do if (i mod 2 = 0) then s:= s + i;
write (T'ong cac so chan trong pham vi tu M den N = ',s);
readln;
end.
mk mới làm tổng thui nghen

#include <bits/stdc++.h>
using namespace std;
long long x,y;
int main()
{
cin>>x>>y;
freopen("kq.txt","w",stdout);
cout<<x+y<<endl;
cout<<x-y<<endl;
cout<<x*y<<endl;
cout<<fixed<<setprecision(2)<<(x*1.0)/(y*1.0);
return 0;
}

Quãng đường người đó đi bằng ô tô là :
35 ‐ 5 = 30 ﴾ km ﴿
45 phút = 0,75 giờ
Vận tốc của người đó di bằng ô tô là :
30 x 0,75 = 22,5 ﴾ km/giờ ﴿
Đáp số : 22,5 km/giờ
#include <bits/stdc++.h>
using namespace std;
double a,b;
int main()
{
cin>>a>>b;
cout<<fixed<<setprecision(2)<<a+b<<endl;
cout<<fixed<<setprecision(2)<<a-b<<endl;
cout<<fixed<<setprecision(2)<<a*b<<endl;
cout<<fixed<<setprecision(2)<<a/b;
return 0;
}