joseleonweb

Untitled

Aug 23rd, 2019
151
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 ProgramaMisterios {
  2.   public static final int VALOR = 25;
  3.   public static void main (String[] args) {
  4.     int n = 0;
  5.     for (int i = 1; i < VALOR; i++) {
  6.       if (i%10 == 0) {
  7.         n++;
  8.       }
  9.     }
  10.     System.out.println("El resultat Ês " + n + ".");
  11.   }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment