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.
b:
#include <bits/stdc++.h>
using namespace std;
long long a,b,t;
int main()
{
cin>>a>>b;
t=a+b;
cout<<t;
return 0;
}
program mang;
uses crt;
var n,i,chan, le,max,min: Integer;
a:array[1..100] of integer;
begin
write('nhap so phan tu ');read(n);
for i:=1 to n do
begin
write('nhap so thu ',i); readln(a[i]);
end;
max:=a[1]; min:=a[1]; chan:=0;le:=0;
for i:=1to n do
begin
if a[i] > max then max:=a[i];
if a[i] < min then min:=a[i];
if a[i] mod 2 = 0 then chan:=chan+1
else le:=le+1;
end;
writeln('max la: ',max);
writeln('min la: ',min);
writeln('so phan tu chan: ',chan);
writeln('so phan tu le: ',le);
readln
end.
program Solonnhat;
uses CRT;
var a,b,c:real;
begin
clrscr;
readln(a);
readln(b);
readln(c);
if (a>b) and (a>c) then
begin
writeln('So lon nhat la ',a:2:2);
readln;
end
else
if (b>a) and (b>c) then
begin
writeln('So lon nhat la ',b:2:2);
readln;
end
else
if (c>a) and (c>b) then
begin
writeln('So lon nhat la ',c:2:2);
readln;
end
end
end.
b:
#include <bits/stdc++.h>
using namespace std;
long long a,b,t;
int main()
{
cin>>a>>b;
t=a+b;
cout<<t;
return 0;
}
uses crt;
var a:array[1..100]of integer;
i,n:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
for i:=1 to n do
if (a[i]>0) and (a[i] mod 5=0) then write(a[i]:4);
readln;
end.
uses crt;
var m,n:integer;
begin
clrscr;
readln(m,n);
if (m>n) cout<<"m lon hon"
else cout<<"n lon hon";
readln;
end.
program lonnhat;
uses crt;
var a,b: integer;
BEGIN
clrscr;
write ('nhap a = '); readln (a);
write ('nhap b = '); readln (b);
if a > b then write (a,' la so lon nhat')
else write (b,' la so lon nhat');
READLN
END.