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 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;
}
uses crt;
var a,b:real;
begin
clrscr;
readln(a,b);
if a>b then writeln(a+b:4:2)
else writeln(a*b:4:2);
readln;
end.
uses crt;
var a,b:longint;
begin
clrscr;
write('a=');readln(a);
write('b=');readln(b);
if(b>a)then writeln(a*b) else writeln(a+b);
readln;
end.
#Include <bits/stdc++.h>
using namespace std;
int a,b,c;
int main()
{
cin>>a>>b>>c;
cout<<a+b+c<<endl;
cout<<a-b-c<<endl;
cout<<a*b*c;
return 0;
}
uses crt;
var x,y:integer;
begin
clrscr;
write('Nhap x='); readln(x);
write('Nhap y='); readln(y);
writeln(x+y);
readln;
end.
#include <bits/stdc++.h>
using namespace std;
long long m,n,i,t;
int main()
{
cin>>m>>n;
t=0;
for (i=m; i<=n; i++)
if (i%15==0) t=t+i;
cout<<t;
return 0;
}
uses crt;
var a,b,x,t,i:integer;
begin
clrscr;
readln(a,b,x);
t:=0;
for i:=a to b do
if i mod x=0 then t:=t+i;
writeln(t);
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;
}