Pr0gramer

Numeros del 1-100 usando: for

Jul 31st, 2018
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.21 KB | None | 0 0
  1. package numeros_del_1_100_for;
  2. public class Numeros_del_1_100_for {
  3.  
  4.     public static void main(String[] args) {
  5.         int f;
  6.         for (f=1;f<=100;f++) {
  7.         System.out.printf("%d-",f);
  8.     }
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment