Harabadji Ina

March 20, 2009

Instrucţiunea CASE se poate folosi şi pentru şiruri de caractere

Filed under: moralitate — Harabadji Ina @ 9:58 am

program prenume_presedintele_tarii;
var x:integer;
begin
writeln(’care este prenumele presedintelui tari’);
writeln(’1 -> traian’);
writeln(’2 -> taienel’);
writeln(’3 -> ion’);
readln(x);
case x of
1:writeln(’Iti iubesti tara’);
2:writeln(’ai fost aproape’);
3:writeln(’Nu iti iubesti tara’);
end;
readln;
end.

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.