All pastes #282983 Raw Edit

Mine

public text v1 · immutable
#282983 ·published 2006-12-18 00:31 UTC
rendered paste body
#include<iostream>

int main()
{
bool check;
int a [ 5 ] ;
cout << " nhap du`m 5 con so di cha,  " ;

for ( int i = 0; i < 5; i ++ )
   {
   cout << " so thu  "<< i + 1  << " is:  " ;
   cin >> a[i] ;
   }
///////////////////////////////////
for ( int k = 0 ; k < 5; k++ )
  {
   for ( int j = k+1 ; j < 5; j++ )
  //////////////////////////////   
    {
     if ( a[j] == a[k])
       {
       check = true;
       break;
       }
     else 
       check = false;
     }
   ////////////////////////////////////
   if ( check == false )
     cout <<  a[k] << "_";
     check = false;
  }
cin >> check;
}