Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

//

int a[10]={5};

for(int i=0;i<10;++i)
cout<< a[i]<<endl;
//

/*
sort(array_name,array_name + array_size);// sort tasa3dy in c++

/// 2d array

int a[2 /*row*/][3 /*column*/]={{1,2,3},{4,5,6}}; //2*3 array

*/

/*
/// 2d array
int a[2][3];

for(int i=0;i<2;++i){

for(int j=0;j<3;++j){

cin>>a[i][j];
}

cout<<"-------\n";

for(int i=0;i<2;++i){

for(int j=0;j<3;++j){

cout<<a[i][j]<<" ";
}
cout<<"\n";

}
*/

/*
/// reverse intger :
int n;
cin >> n;

while(n != 0) {
int remainder = n % 10;
cout<< remainder<<"\n";
n /= 10;
}
*/

UVA

methods to solve problem


identify problem
simplify( if needed)
develop solution
implement (best) solution
test the solution

You might also like