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.

19 tháng 12 2019

uses crt;
var x,y :int64;
begin
clrscr;
write('nhap gia tri cua x: ');
readln(x);
write('nhap gia tri cua y: ');
readln(y);
if (x>= y ) then write('S = ', x+y)
else write ('S = ', x-y);
readln;
end.

2: 

#include <bits/stdc++.h>

using namespace std;

double a;

int main()

{

cin>>a;

if (a<0) cout<<"a la so am";

else cout<<"a khong la so am";

return 0;

}

15 tháng 12 2019

Cách 1:

if (x >= 1) or (x <= 0)

then D:= -2*x + 1 else D:= sqr(x) + 2*x + 1;

Cách 2:

if (0 < x) and (x < 1)

then D:= sqr(x) + 2*x +1 else D:= -2*x + 1;

23 tháng 10 2018

Cách 1:

if (x > 1) or (x <= -1)

then C:= sqrt(x) + 1 else C:= 2*x - 3;

Cách 2:

if (-1 < x) and (x <= 1)

then C:= 2*x – 3 else C:= sqrt(x) + 1;

4 tháng 1 2022

Var x:integer ;

y:real ;

uses crt;

var x,y:integer;

begin

clrscr;

readln(x);

y:=sqr(x);

writeln(y);

readln;

end.

22 tháng 12 2020

uses crt;

var x,y:integer;

begin

clrscr;

write('Nhap x='); readln(x);

write('Nhap y='); readln(y);

if x>y then writeln(x-y)

else writeln(x+y);

readln;

end.