int Pytania(int nrPytania){
String trescPytania,odp1,odp2,odp3,odp4;
switch(nrPytania){
case 1:
trescPytania=" Jakiego koloru jest czerwony maluch ?";
odp1 = "Zielony";
odp2 = "Czerwony";
odp3 = "Fioletowy";
odp4 = "Brązowy";
break;
case 2:
trescPytania=" Ile nóg ma stonoga ?";
odp1 = "50";
odp2 = "60";
odp3 = "101";
odp4 = "100";
break;
case 3:
trescPytania=" Jaki słynny wzór wymyślił Albert Einstein";
odp1="R=U/I";
odp2="E=MC^2";
odp3="A^2+B^2=C^2";
odp4="S=AT^2/2" ;
break;
default:
break;
}
lcd.clear();
dlugoscTekstu = trescPytania.length();
dlugoscTekstu = dlugoscTekstu - 16;
lcd.print(trescPytania);
for (int thisChar = 0; thisChar < dlugoscTekstu; thisChar++){
lcd.scrollDisplayLeft();
delay(1000);
}
lcd.clear();
lcd.print(odp1);
lcd.setCursor(0,1);
lcd.print(odp2);
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}