Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package loiane;
- public class blz {
- public static void main(String[] args) {
- int[] temperaturas = new int[10];
- temperaturas[0] = 10;
- temperaturas[1] = 15;
- temperaturas[2] = 20;
- temperaturas[3] = 25;
- for(int i = 0;i<temperaturas.length;i++){
- System.out.println("O valor é do dia "+(i+1)+" é: " +temperaturas[i]);
- }
- //System.out.println("O valor é: " +temperaturas.length);
- }
- /* César N. */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement