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.

#inclue <bits/stdc++.h>
using namespace std;
double a;
int main()
{
cin>>a;
if (a<=0) cout<<"khong phai";
else cout<<fixed<<setprecision(2)<<a*a;
return 0;
}

s = input("Nhập một xâu bất kỳ: ")
print("Các ký tự và chữ số trong xâu là:")
for char in s:
if char.isdigit() or char.isalpha():
print(char)

#include <bits/stdc++.h>
using namespace std;
long long m,n;
int main()
{
cin>>m>>n;
if (m%n==0) cout<<m/n;
else if (n%m==0) cout<<n/m;
else cout<<m+n;
return 0;
}

uses crt;
var a:array[1..100]of longint;
i,n,t,t1,tam,j:integer;
s,s1:int64;
begin
clrscr;
repeat
write('nhap n='); readln(n);
until n>0;
for i:=1 to n do
begin
repeat
write('a[',i,']='); readln(a[i]);
until a[i]>=0;
end;
writeln('Mang A=');
for i:=1 to n do
write(a[i]:4);
writeln;
t:=0;
for i:=1 to n do
t:=t+a[i];
writeln('Tong gia tri cua mang A la: ',t);
s:=1;
for i:=1 to n do
s:=s*i;
writeln('Tich cac gia tri cua mang A la: ',s);
t1:=0;
for i:=1 to n do
if i mod 2=0 then t1:=t1+a[i];
writeln('Tong cac gia tri o vi tri chan la: ',t1);
s1:=1;
for i:=1 to n do
if i mod 2<>0 then s1:=s1*a[i];
writeln('Tich cac gia tri o vi tri le la: ',s1);
for i:=1 to n-1 do
for j:=i+1 to n do
if a[i]>a[j] then
begin
tam:=a[i];
a[i]:=a[j];
a[j]:=tam;
end;
writeln('Mang A sau khi sap xep la: ');
for i:=1 to n do
write(a[i]:4);
writeln;
writeln('Cac phan tu co gia tri lon hon 10 la: ');
for i:=1 to n do
if a[i]>10 then write(a[i]:4);
readln;
end.

program boi_cua_3;
uses crt;
var a:array[1..100] of integer;
n,i:byte;
s:integer;
begin
clrscr;
write('nhap so luong phan tu cua mang: ');
readln(n);
for i:= 1 to n do
begin
write('nhap phan tu thu [',i,']= ');
readln(a[i]);
end;
s:=0;
for i:= 1 to n do
if a[i] mod 3 = 0 then s:=s+a[i];
writeln('vay tong cac so la boi cua 3 la: ',s);
readln;
end.

uses crt;
var x,dt,s:real;
i:integer;
{---------------chuong-trinh-con-nhap--------------------------}
procedure nhap(a:real);
begin
write('Nhap ban kinh:'); readln(a);
end;
{--------------------chuong-trinh-con-tinh-dien-tich-----------------------------}
function dtht(a:real):real;
begin
dtht:=sqr(a)*pi;
end;
{-----------------------chuong-trinh-chinh-----------------------------}
begin
clrscr;
s:=0;
for i:=1 to 5 do
begin
nhap(x);
dt:=dtht(x);
s:=s+dt;
end;
writeln(s:4:2);
readln;
end.

const fi='songuyen.txt';
fo='ketqua.txt';
var f1,f2:text;
a:array[1..100]of integer;
n,i,t:integer;
begin
assign(f1,fi); reset(f1);
assign(f2,fo); rewrite(f2);
n:=0;
while not eoln(f1) do
begin
inc(n);
read(f1,a[n]);
end;
t:=0;
for i:=1 to n do
if a[i]>0 then t:=t+a[i];
writeln(f2,t);
close(f1);
close(f2);
end.
3:
#include <bits/stdc++.h>
using namespace std;
double a,b;
int main()
{
cin>>a>>b;
cout<<fixed<<setprecision(2)<<a*b;
return 0;
}