Advertisement
oona

chemistry readings

Nov 18th, 2013
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. public class chemistryReadings {
  2.  
  3.     public static void main(String[] args) {
  4.         // TODO Auto-generated method stub
  5.        
  6.         int[] readingNum = {45, 43, 56, 46, 59, 54, 49, 40, 57, 38};
  7.        
  8.         for(int i=0; i<=9; i++)
  9.            
  10.             if(readingNum[i]>50)
  11.             {
  12.                 System.out.println(i+1);
  13.             }
  14.  
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement