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.

21 tháng 10 2021

Câu 1: 

#include <bits/stdc++.h>

using namespace std;

double a,b,c;

int main()

{

cin>>a>>b>>c;

cout<<fixed<<setprecision(2)<<a*b*c;

return 0;

}

24 tháng 12 2022

Câu 2:

#include <bits/stdc++.h>

using namespace std;

long long n;

int main()

{

cin>>n;

if (n>0 && n%5==0) cout<<"Phai";

else cout<<"Khong phai";

}

25 tháng 12 2023

program CompareNumbers;

var
  x, y: real;

begin
  // Bước 1: Nhập 2 số thực x và y từ bàn phím
  write('Nhap so thuc x: ');
  readln(x);

  write('Nhap so thuc y: ');
  readln(y);

  // Bước 2: So sánh x và y, in ra số lớn hơn
  if x > y then
    writeln('x lon hon y')
  else if x < y then
    writeln('y lon hon x')
  else
    writeln('x bang y');

  readln;
end.


(khoog bt đúng ko)

22 tháng 3 2023

program TinhTongSoNguyenTo;
var
  X, Y, i, j, dem, tong: integer;
begin
  write('Nhap X: ');
  readln(X);
  write('Nhap Y: ');
  readln(Y);
  tong := 0;
  for i := X to Y do
  begin
    dem := 0;
    for j := 2 to i div 2 do
      if i mod j = 0 then
      begin
        dem := dem + 1;
        break;
      end;
    if dem = 0 then
      tong := tong + i;
  end;
  writeln('Tong cac so nguyen to tu ', X, ' den ', Y, ' la: ', tong);
  readln;
end.

 

uses crt;

var x,y:int64;

begin

clrscr;

readln(x,y);

writeln(x+y);

writeln(x-y);

writeln(x*y);

writeln(x/y:4:2);

readln;

end.

21 tháng 12 2018

hk chia hết cho 9 nna