Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main( int argc , char** argv )
- {
- int n = 1,i,j;
- int alap[ n ];
- int modositott[ n ];
- scanf( "%d" , &n );
- for( i = 0; i < n; i++ )
- {
- scanf( "%d" , &alap[ i ] );
- }
- for( j = n - 1 , i = 0; i < n; i++ , j-- )
- {
- modositott[ j ] = alap[ i ];
- }
- for( i = 0; i < n; i++ )
- {
- printf( "%d" , alap[ i ] );
- }
- printf( "\n" );
- for( i = 0; i < n; i++ )
- {
- printf( "%d" , modositott[ i ] );
- }
- printf( "\n" );
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment