Hi everbody.
I have a question.
I am trying to make a code that will write every character between an character c1 and a character c2. I tried this
Code:
Program whatever (input,output);
var t,c1,c2:char;
begin
read(c1,c2);
if c1>c2 then
begin
t:=c1;
c1:=c2;
c2:=t;
end;
for t:=c1 to c2 do write(t:2);
writeln
end.
but it gives me this.
Code:
a d
! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a
How do i change the code to get what i want?
Thanks.
Bookmarks