Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class counter {
- public static void main(String[] args) {
- for (int startingNumber = 1; startingNumber <= 10; startingNumber++)
- {
- System.out.print(startingNumber + " ");
- }
- }
- }
- // remember: you can always switch startingNumber and the number that it's supposed to get to anytime you want for different results!
Advertisement
Add Comment
Please, Sign In to add comment