Search:

Type: Posts; User: jasonkwp

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    1,044

    Re: Loop Structure

    I have done the I have 1 sheep java script like:
    class Sheep{
    public static void main(String[] args){
    for(int i=1; i<1; i++){
    System.out.println("I have 1 sheep: ");
    System.out.println("I have...
  2. Replies
    4
    Views
    1,044

    Loop Structure

    1) I want to need to write a program using a while loop structure that will display the following output:

    I have 1 sheep
    I have 2 sheep
    I have 3 sheep
    I have 4 sheep
    I have 5 sheep
    I have 6...
Results 1 to 2 of 2