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