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.

6 tháng 4 2023

Program HOC24;

var a,b: integer;

begin

write('Nhap a: '); readln(a);

write('Nhap b: '); readln(b);

 

if a> b then write(a);

if a<b then write(b);

if a=b then write('2 so bang nhau');

readln

end.

7 tháng 4 2023

Var a,b:real;

Begin

Write('a = ');readln(a);

Write('b = ');readln(b);

If a > b then write('So lon la ',a:10:2)

Else if b > a then write('So lon la ',b:10:2)

Else write('Hai so bang nhau');

Readln;

End.

22 tháng 5 2023

Cho mình hỏi :10:2 là sao vậy bn

22 tháng 5 2023

Program solonhon;

var a,b: integer;

begin

write('Nhap a: '); readln(a);

write('Nhap b: '); readln(b);

if a> b then write(a);

if a<b then write(b);

if a=b then write('2 so bang nhau');

readln

end.

22 tháng 5 2023

Program HOC24;

var a,b: integer;

begin

write('Nhap a: '); readln(a);

write('Nhap b: '); readln(b);

if a>b then write(a) else write(b);

readln

end.

uses crt;

var n,i,d,max,x,y:integer;

st:string;

begin

clrscr;

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

str(n,st);

d:=length(st);

max:=0;

for i:=1 to d do 

  begin

val(st[i],x,y);

if max<x then max:=x;

end;

writeln(max);

readln;

end.

D
datcoder
Giáo viên
8 tháng 12 2023

Program HOC24;

var i: byte;

s: string;

begin

readln(s);

for i:=1 to length(s) do

begin

if s[i]='1' then write('mot ');

if s[i]='2' then write('hai ');

if s[i]='3' then write('ba ');

if s[i]='4' then write('bon ');

if s[i]='5' then write('nam ');

if s[i]='6' then write('sau ');

if s[i]='7' then write('bay ');

if s[i]='8' then write('tam ');

if s[i]='9' then write('chin ');

if s[i]='0' then write('khong ');

readln;

end.

14 tháng 7 2023

C++:
#include <iostream>

#include <cmath>

int main{

int a,b,c; //Nhập giá trị

cin >> a >> b >> c; // lấy giá trị vào máy

int d = max(a,(b,c)); // tìm giá trị lớn nhất
int e = min(a,(b,c)); //tìm giá trị nhỏ nhất

int q = d*e; //tính tích

cout << q; // in ra máy
}

14 tháng 7 2023

#include <iostream>

#include <cmath>

int main{

int a,b,c; //Nhập giá trị

cin >> a >> b >> c; // lấy giá trị vào máy

int d = max(a,max(b,c)); // tìm giá trị lớn nhất
int e = min(a,max(b,c)); //tìm giá trị nhỏ nhất

int q = d*e; //tính tích

cout << q; // in ra máy
}

xin lỗi ở trên mình viết nhầm

13 tháng 7 2023

S.O.S

6 tháng 4 2023

Program HOC24;

var i,s: byte;

begin

s:=0;

for i:=1 to 10 do s:=s+i;

write('S = ',s);

readln

end.

19 tháng 12 2021

#include <bits/stdc++.h>

using namespace std;

long long n;

int main()

{

cin>>n;

if (n%2==0) cout<<"Chan";

else cout<<"Le";

return 0;

}