Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.lang.*;
- import java.io.*;
- public class p21
- {
- public static void main(String args[])
- {
- int i,j; i=20;
- while (i<100)
- {
- j=i/20;
- System.out.println(" j:"+j+" i:"+i);
- i=i+15;
- }
- System.out.println("_________________________");
- int a,b; a=20;
- b=a/20;
- do
- {
- a=a+15;
- System.out.println(" j:"+b+" i:"+a);
- }
- while (a<=100);
- System.out.println("_________________________");
- int y;
- for (int x=20;x<100;x++)
- {
- x=x+15;
- y=x/20;
- System.out.println(" j:"+y+" i:"+x);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement