cesarnascimento

numeros 1000 a 2000 q divididos por 11 prod 5

May 12th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. package ex11;
  2. import java.util.Scanner;
  3.  
  4. public class ex1 {
  5.  
  6.     public static void main(String[] args) {
  7.         Scanner sc = new Scanner(System.in);
  8.         int numeros;
  9.        
  10.             for(numeros = 1000; numeros <=2000; numeros++){
  11.                 if(numeros % 11 == 5){
  12.                     System.out.println(numeros);
  13.                 }
  14.             }
  15.     }
  16.  
  17. }
  18. // nรบmeros  de 1000 a 2000 que divididos por 11 produzam 5
Add Comment
Please, Sign In to add comment