K
Khách

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.

30 tháng 12 2021

Help me pls

30 tháng 12 2021

#include <bits/stdc++.h>

using namespace std;

double a,b,c,tb;

int main()

{

cin>>a>>b>>c;

tb=((a+b)*2+c)/5;

if (tb>=9) cout<<"Gioi";

else if ((tb>=7) and (tb<9)) cout<<"Kha";

else if ((tb>=5) and (tb<7)) cout<<"Trung binh";

else cout<<"Yeu";

return 0;

}

30 tháng 12 2021

#include <bits/stdc++.h>

using namespace std;

double a,b,c,tb;

int main()

{

cin>>a>>b>>c;

tb=((a+b)*2+c)/5;

if (tb>=9) cout<<"Gioi";

else if ((tb>=7) and (tb<9)) cout<<"Kha";

else if ((tb>=5) and (tb<7)) cout<<"Trung binh";

else cout<<"Yeu";

return 0;

}

#include <bits/stdc++.h>

using namespace std;

double a[10],b,c,tb;

int n,i,dem;

int main()

{

cout<<"Nhap so cot thuong xuyen:"; cin>>n;

tb=0;

for (i=1; i<=n; i++)

{

cin>>a[i];

tb=tb+a[i];

}

cin>>b>>c;

tb=tb+b+c;

cout<<fixed<<setprecision(2)<<tb/(n+2)<<endl;

if (tb>=8) 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[10],b,c,tb;

int i,n;

int main()

{

cout<<"Nhap so cot thuong xuyen:"; cin>>n;

for (i=1; i<=n; i++) cin>>a[i];

cout<<"Nhap diem giua ki:"; cin>>b;

cout<<"Nhap diem cuoi ki:"; cin>>c;

tb=0;

for (i=1; i<=n; i++) tb=tb+a[i];

tb=tb+b+c;

tb=tb/((n+2)*1.0);

cout<<fixed<<setprecision(2)<<tb<<endl;

if (tb>=8) 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;

}

uses crt;

var diem:real;

begin

clrscr;

repeat

write('Nhap diem trung binh:'); readln(diem);

until (0<=diem) and (diem<=10);

if diem<5 then writeln('Xep loai yeu')

else if (5<=diem) and (diem<6.5) then writeln('Xep loai trung binh')

else if (6.5<=diem) and (diem<8.0) then writeln('Xep loai kha')

else writeln('Xep loai gioi');

readln;

end.

NG
14 tháng 10 2023

loading...

10 tháng 4 2023

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.

28 tháng 4 2021

nếu chạy ct mà nó không dừng lại thì bấm alt+F5 nhá

28 tháng 4 2021

thank