Showing posts with label absolute value solver in turbo pascal. Show all posts
Showing posts with label absolute value solver in turbo pascal. Show all posts

Friday, October 7, 2016

Absolute Value Solver in Turbo Pascal

A simple program that I wrote using Borland International Turbo Pascal For Windows to solve the absolute value of the given negative integer number by the user. The code is very simple and easy to understand.


Add me at Facebook my address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com. 


My email address are the following 
jakerpomperada@gmail.com and jakerpomperada@yahoo.com. 

My mobile number here in the Philippines is 09173084360.




Sample Program Output


Program Listing

Program Absolute_Value_Solver;

Uses WinCrt;


Var   value_a : integer;

Begin
  Clrscr;
  Write('Absolute Value Solver in Turbo Pascal');
  writeln;
  Writeln;
  Write('Give a Number : ');
  Readln(value_a);
  Writeln;
  Write('The absolute value of ',value_a,
        ' is ' , abs(value_a),'.');
  writeln;
  Writeln;
  write('End of Program');
  Writeln; Writeln; Writeln;
  Write('      Written By: Mr. Jake R. Pomperada,MAED-IT     ');
  Writeln;
  Readln;
End.