As I learned computer programming my first programming language that I have learned is Pascal the compiler that I am using during those days in college in Turbo Pascal 5.0. In this program I would like to reminisce the past by writing a program using Pascal as my programming language to accept a number from the user and then convert the number into ordinal equivalent values. In this sample program I am using Turbo Pascal 5.5 that is widely available right now to download free from any charges over the Internet. This problem I encounter during my college days in our programming class.
I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following email@example.com, firstname.lastname@example.org, and email@example.com.My mobile number here in the Philippines is 09173084360. My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.
Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com
My programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/
(* Ordinal_Numbers.pas*) (* Written By Mr. Jake R. Pomperada, MAED-IT *) (* Tools : Turbo Pascal 5.5. For DOS *) (* Date : November 24, 2015 *) Program Ordinal_Numbers; Uses Crt; Var number : integer; message : string; a: integer; mod100 : integer; mod10: integer; begin a:=0; mod10:=0; mod100:=0; clrscr; textcolor(yellow); write('Ordinal Number Generator in Pascal'); writeln; writeln; writeln; write('Enter a Number : '); readln(number); writeln; writeln; for a:= 1 To number Do Begin mod10 := (a mod 10); mod100 := (a mod 100); if (mod10 = 1) AND (mod100 <> 11) then Begin message := 'st'; End else if (mod10 = 2) AND (mod100 <> 12) then Begin message := 'nd'; End else if (mod10 = 1) AND (mod100 <> 11) then Begin message := 'rd'; End else Begin message := 'th'; End; write(' ',a,message,' '); End; writeln; writeln; write('End of Program'); readln; End.