jpss

Untitled

Mar 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Questão 2
  2.  
  3. public static void main(String[] args){
  4. int numero = 0;
  5. int soma = 0;
  6.  
  7. for(int i=1; i<100; i++){
  8. numero ++;
  9. soma = soma+ numero;
  10. System.out.println("Numero atual da contagem N°"+numero +" Soma:"+soma);
  11. }
  12.  
  13. }
  14.  
  15.  
  16. Questão 3
  17.  
  18. for(int i=0; i<100; i++){
  19. if(i%3 == 0)
  20. System.out.println( i+ "é multiplo de 3);
  21. }
Add Comment
Please, Sign In to add comment