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;
double a,b,tb;
int main()
{
cin>>a>>b;
tb=(a+b*2)/3;
cout<<fixed<<setprecision(2)<<tb<<endl;
if (tb>=8.0) cout<<"Gioi";
else if ((tb>=6.5) and (tb<8)) cout<<"Kha";
else if ((tb>=5.0) and (tb<6.5)) cout<<"Trung binh";
else cout<<"Yeu";
return 0;
}
#include <bits/stdc++.h>
using namespace std;
double a,b,kq;
int main()
{
cin>>a>>b;
kq=(a+b*2)/3;
cout<<fixed<<setprecision(2)<<kq;
return 0;
}
uses crt;
var a,b,tb:real;
begin
clrscr;
readln(a,b);
tb:=(a+b*2)/3;
writeln(tb:4:2);
if (tb>=8) then writeln('gioi')
else if ((tb>=6.5) and (tb<8)) then writeln('Kha')
else if ((tb>=5) and (tb<6.5)) then writeln('Trung Binh')
else writeln('Yeu');
readln;
end.
#include <bits/stdc++.h>
using namespace std;
double a,b,tb;
int main()
{
cin>>a>>b;
tb=(a+b*2)/3;
cout<<fixed<<setprecision(2)<<tb<<endl;
if (tb>=8.0) cout<<"Gioi";
else if ((tb>=6.5) and (tb<8)) cout<<"Kha";
else if ((tb>=5) and (tb<6.5)) cout<<"Trung binh";
else cout<"Yeu";
return 0;
}
#include <bits/stdc++.h>
using namespace std;
double a[100],t;
int n,i;
int main()
{
cin>>n;
for (i=1; i<=n; i++) cin>>a[i];
for (i=1; i<=n; i++)
cout<<"Diem cua ban thu "<<i<<" la: "<<fixed<<setprecision(2)<<a[i]<<endl;
t=0;
for (i=1; i<=n; i++) t+=a[i];
cout<<"Trung binh cua lop la: "<<fixed<<setprecision(2)<<t/(n*1.0);
return 0;
}
#include <bits/stdc++.h>
using namespace std;
double a,b,c,d,t;
int main()
{
cin>>a>>b>>c>>d;
t=(a*3+b*2+c+d)/7;
cout<<fixed<<setprecision(2)<<t<<endl;
if (t>=8) cout<<"Gioi";
else if ((t>=6.5) and (t<8)) cout<<"Kha";
else if ((t>=5) and (t<6.5)) cout<<"Trung binh";
else cout<<"Yeu";
return 0;
}