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.

11 tháng 11 2021

Chọn B

10 tháng 10 2021

#include <bits/stdc++.h>

using namespace std;

int main()

{

float a,b,s,d;

cin>>a>>b;

d=sqrt(a*a+b*b);

s=a*b;

cout<<"Do dai duong cheo la:"<<fixed<<setprecision(2)<<d<<endl;

cout<<"Dien tich la:"<<fixed<<setprecision(2)<<s;

return 0;

}

10 tháng 10 2021

#include <iostream>
using namespace std;
int main()
{
int n;
double S;
cin >> n;
for(int i=1; i<=n; i++)
    S+=1.0/i;
    cout << double(S) << endl;
return 0;
}

Chúc bn học tốt!

Chọn D

12 tháng 11 2021

#include <bits/stdc++.h>

using namespace std;

double a,b,cv,dt;

int main()

{

cin>>a>>b;

cv=(a+b)*2;

dt=a*b;

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

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

return 0;

}

22 tháng 3 2023

a/ var s: string;

b/ readln(s);

c/ write(length(s));

d/ for i:=1 to length(s) do if s[i] in ['0'..'9'] then write(s[i]);

15 tháng 5 2020

Program HOC24;

const fi='Data.txt';

fo='Result.txt';

var f: text;

a,b: integer;

dt,cv: longint;

dc: real;

procedure ip;

begin

assign(f,fi);

reset(f);

readln(f,a);

readln(f,b);

close(f);

end;

procedure out;

begin

assign(f,fo);

rewrite(f);

dt:=a*b;

cv:=(a+b)*2;

dc:=sqrt((a*a)+(b*b));

writeln(f,'Chu vi hinh chu nhat la : ',cv);

writeln(f,'Dien tich cua hinh chu nhat la : ',dt);

write(f,'Chieu dai cua duong cheo la : ',dc:1:2);

close(f);

end;

begin

ip;

out;

end.

22 tháng 10 2018

Đáp án đúng : C