Sequence 5

sequence5
public class Sequence5
{
// Coded by : Shahbaz Hashmi
public static void main(String[] args)
{
int i = 1;
while(i <= 50) // print to
{
for(int j = 1; j <= 5; j++)
{
System.out.print(i + " ");
i++;
}
i = i + 5;
}
}
}

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *