# data[].attributes.body
wowo

# data[].attributes.attachment_link.readable_text
#include<bits/stdc++.h>
using namespace std;
int main() {
int m,n;
do{
cout<<"Nhap so m: ";cin>>m;
cout<<"Nhap so n: ";cin>>n;
if ((n<0)||(m<0)||(m<n))
cout<<"So nhap da khong hop le!"<<endl;
}while((n<0)||(m<0)||(m<n));
cout<<"So nhap da hop le!";
int dem=0;
cout<<endl<<"Cac uoc chung cua N: ";
for(int i=1;i<=n;i++)
if(n%i==0){
cout<<i<<" ";
dem++;}
if(dem==2)cout<<endl<<"N la so nguyen to";
else cout<<"N khong phai la so nguyen to"<<endl;
return 0;
}

# data[].attributes.attachment_link.readable_text
#include<bits/stdc++.h>
using namespace std;
int main ()
{
long long m,n,ucln,a,b,so_be,so_lon;
cout<<"Nhap so n: ";cin>>n;
cout<<"Nhap so m: ";cin>>m;
ucln=1;
for(int i =1; i<=min(m,n) ;i++){
if(m%i==0,n%i==0)
ucln= i;}
cout<<"Uoc chung lon nhat cua hai so m va n la: "<<ucln;
cout<<endl<<"Nhap so a: ";cin>>a;
cout<<"Nhap so b: ";cin>>b;
so_lon=max(a,b);
so_be=min(a,b);
for(int e=1;e<=so_lon;e++){
if(so_lon*e%so_be) break;}
cout<<"boi chung nho nhat cua a va b la:"<<so_lon;
return 0;	
}

# data[].attributes.attachment_link.readable_text
#include<bits/stdc++.h>
using namespace std;
int main ()
{
long long tich,n;
tich =1;
cout<<"Nhap so n: ";
cin>>n;
for (int i=1;i<=n;i++)
{
if (i%2==0){
cout<<i<<" ";
tich=tich* i;}
}
cout<<endl<<" tich cua cac so do la: "<<tich;
return 0;	
}

# data[].attributes.attachment_link.readable_text
#include<bits/stdc++.h>
using namespace std;

int main()
{
	int n,tong(0);
	cout<<"Yeu cau nhap mot so nguyen"<<endl;
	while((n>=0)&&(n<100000))
	{
		cout<<"nhap N= ";
		cin>>n;
		tong=n+n;
	}cout<<"Tong cac so da nhap la:"<<tong;
	return 0;
}

# data[].attributes.attachment_link.readable_text
#include<bits/stdc++.h>
using namespace std;

int main()
{
	int n,tong(0);
	cout<<"Yeu cau nhap mot so nguyen"<<endl;
	while((n>=0)&&(n<100000))
	{
		cout<<"nhap N= ";
		cin>>n;
		tong=tong+n;
	}cout<<"Tong cac so da nhap la:"<<tong;
	return 0;
}

# data[].attributes.attachment_link.readable_text
#include<bits/stdc++.h>
using namespace std;

int main(){
int n,so(0),a,dem_tang(0),dem=a;
cout<<"Nhap cac so can nhap: ";cin>>n;
cout<<"Cac so can nhap la: ";
while(so<n){
cin>>a;
so++;
if(dem<a)
dem_tang++;dem=a;}
cout<<"Cac so tang theo thu tu lien tiep dai nhat la: "<<dem_tang;	 
}

# data[].attributes.attachment_link.readable_text
#include<bits/stdc++.h>
using namespace std;
int main(){
int a[100],n,max(1),min,tong=0,k,dem(0);
cout<<"Cac so luong phan tu cua mang: ";cin>>n;
for(int i(1);i<=n;i++)
{ 
	cout<<"a["<<i<<"]=";
	cin>>a[i];

}
for(int i(1);i<=n;i++){
    if (max<a[i])max=a[i];
    if (min>a[i])min=a[i];
}
    cout<<"Phan tu be nhat la: "<<min<<endl;
    cout<<"Phan tu lon nhat la: "<<max<<endl;
for(int i(1);i<=n;i++)
{ 
    if (a[i]<0){
    tong=tong+a[i]*a[i];}
}
    cout<<"Tong binh phuong cua cac so am trong mang la: "<<tong;
for(int k){
 cout<<"so nguyen k";cin>>k;
 if (k=a[i])dem=dem+1;
}cout<<"So lan k xuat hien la:"<<dem;
return 0;
}
