Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static string highPrices(int [] value)
- {
- String str = '';
- for( int x = 0 ; x < 5 ; x++ )
- {
- if( value[x] > avg )
- {
- if( str == '' )
- str = value[x];
- else
- str = str + ", " + value[x];
- }
- }
- return str;
- }
Add Comment
Please, Sign In to add comment