Advertisement
Nothy

hej hoppsan hoppsan hejdå hejdå tack

Feb 28th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1.     public static void main(String args[]) {
  2.         String[] ord = {"Hej","Hoppsan","Hejda","Tack","Olle"};
  3.  
  4.         int i,j;
  5.         i=0;
  6.         j=1;
  7.            
  8.         for (int count=0; count < 3; count++)
  9.         {
  10.              System.out.println(ord[count]+" "+ord[count+1]);
  11.             //Här ska koden du skriver ligga placerad, enbart här!
  12.         }
  13.     }
  14.  
  15. OUTPUT:
  16. Hej Hoppsan
  17. Hoppsan Hejda
  18. Hejda Tack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement