Noah37ias_OpgaverHTX_NoahEliasBrondAstrup/Uge_43_opgave_1.pde
//opgave 1
String s="Hej med dig!";
for(int i=0;i<s.length();i=i+1){
  if(i<5){
    println(s.charAt(i));}
}
println();

//while
int j=0;
while(j<s.length()){
  if(j<5){
    println(s.charAt(j));}
      j=j+1;
}

//optimering
for(int k=0;k<5;k++){
  print(s.charAt(k));
}

println();
println(s.substring(0,5));
