Những câu hỏi liên quan
Lan Tuyết
Xem chi tiết
nuinuini
Xem chi tiết
Nguyễn Lê Phước Thịnh
18 tháng 10 2021 lúc 0:11

Câu 3: 

#include <bits/stdc++.h>

using namepsace std;

double a,b,c,p,s;

int main()

{

cin>>a>>b>>c;

p=(a+b+c)/2;

s=sqrt(p*(p-a)*(p-b)*(p-c));

cout<<fixed<<setprecision(2)<<s;

return 0;

}

Bình luận (0)
nuinuini
Xem chi tiết
Nguyễn Lê Phước Thịnh
18 tháng 10 2021 lúc 0:10

Câu 3: 

#include <bits/stdc++.h>

using namepsace std;

double a,b,c,p,s;

int main()

{

cin>>a>>b>>c;

p=(a+b+c)/2;

s=sqrt(p*(p-a)*(p-b)*(p-c));

cout<<fixed<<setprecision(2)<<s;

return 0;

}

Bình luận (0)
Trang
Xem chi tiết
Minh Lệ
9 tháng 5 2023 lúc 13:37

Program HOC24;

var i,n,d: integer;

a: array[1..1000] of integer;

begin

write('Nhap N: '); readln(n);

for i:=1 to n do

begin

write('Nhap so thu ',i,': '); readln(a[i]);

end;

d:=0;

for i:=1 to n do if a[i] mod 5<>0 then d:=d+1;

write('Co ',d,' so khong chia het cho 5');

readln

end.

Bình luận (0)
nuinuini
Xem chi tiết
Nguyễn Lê Phước Thịnh
18 tháng 10 2021 lúc 0:11

Câu 3:

#include <bits/stdc++.h>

using namepsace std;

double a,b,c,p,s;

int main()

{

cin>>a>>b>>c;

p=(a+b+c)/2;

s=sqrt(p*(p-a)*(p-b)*(p-c));

cout<<fixed<<setprecision(2)<<s;

return 0;

}

Bình luận (0)
nhannhan
Xem chi tiết
Kim Thái
Xem chi tiết
Duydash
7 tháng 11 2021 lúc 20:06

Program tinh_tong;

uses crt;

var a,b:Integer;

begin

Write('Nhap gia tri a: ');

Readln(a);

Write('Nhap gia tri b: ');

Readln(b);

Writeln('Tong: ',a+b);

Readln();

end.

Bình luận (0)
Nhật Tiến Sì
Xem chi tiết
Nguyễn Phú Thanh
Xem chi tiết
Monkey D. Luffy
30 tháng 10 2021 lúc 8:35

#include <bits/stdc++.h>

using namespace std;

int a,b,c,d;

int main()

{

cout<<"Nhap so a: ";

cin>>a;

cout<<"Nhap so b: ";

cin>>b;

c=a/b;

d=a%b

cout<<"Phan nguyen phep chia la: "<<c<<endl;

cout<<"Phan du phep chia la: "<<d;

Return 0;

}

Bình luận (0)