Advertisement
ennio21

Untitled

Aug 16th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.95 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package primeiraaplicacao;
  7. import java.util.Scanner;
  8. /**
  9.  *
  10.  * @author Nobody
  11.  */
  12. public class PrimeiraAplicacao {
  13.  
  14.     /**
  15.      * @param args the command line arguments
  16.      */
  17.     public static void main(String[] args) {
  18.         /* 1. Faça um programa que exiba na tela todos os
  19.         múltiplos de 7 entre os números de 1 a 100 em ordem decrescente.*/
  20.         Scanner input = new Scanner( System.in );
  21.         int x, y, z, result;
  22.        
  23.         System.out.print("Primeiro número");
  24.         x = input.nextInt();
  25.        
  26.         System.out.print("seg número");
  27.         y = input.nextInt();
  28.        
  29.         System.out.print("ter número");
  30.         z = input.nextInt();
  31.        
  32.         System.out.println(x+y+z);
  33.        
  34.     }
  35.    
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement