Home   Easy-Code    Forum  Updater 
Twitter Facebook



Program to print railway reservation ticket using pascal

Critics Rating:

Users Rating:

(*PROGRAM TO PRINT RAILWAY RESERVATION TICKET*)

program rail;

uses crt;

var

name,male,sou,des,date:string;

begin

clrscr;

write("ENTER YOUR NAME : ");

readln(name);

write("ENTER MALE/FEMALE : ");

readln(male);

write("ENTER SOURCE CITY : ");

readln(sou);

write("ENTER DESTINATION CITY : ");

readln(des);

write("ENTER JOURNEY DATE : ");

readln(date);

clrscr;

writeln(" SOUTH CENTRAL RAILWAY RESERVATION ");

writeln(" --------------------------------- ");

writeln(" DATE : ",date);

writeln;

writeln(" PASSENGER NAME : ",name);

writeln;

writeln(" MALE/FEMALE : ",male);

writeln;

writeln(" SOURCE CITY : ",sou);

writeln;

writeln(" DESTINATION CITY : ",des);

writeln;

writeln(" TRAIN NUMBER : 024862 EDCF");

writeln;

writeln(" TICKET NUMBER : 345239");

writeln;

writeln(" COMPARTMENT NUMBER : 86939-AC");

writeln;

writeln(" DEPARTURE TIME : 5:30 P.M. ");

writeln;

writeln(" TICKET FARE : 1000/- ");

writeln;

writeln;

writeln(" HAPPY JOURNEY TO ",des);

end.

Courtesy, Source, References & Regards: Kishore AVGK

While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright@2009-2011 by KuGuNi.com. All Rights Reserved.