Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package count;
- /**
- * @author Jamison Allen
- */
- public class Count {
- public static void main(String[] args) {
- System.out.println("Counting Program ");
- int index;
- index = 1;
- while ( index <= 10){
- System.out.println(index + "Roy High Royals");
- index = index = 10; //index=+1 index++
- }
- System.out.println("finished!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement