A simple Pascal program to turn on/off an AC
Page 1 of 1
A simple Pascal program to turn on/off an AC
- Code:
var
Temp: Single;
begin
WriteLn('What is the Temperature of Your Room?');
Readln(Temp);
if Temp > 25 then
WriteLn('Your Temp is ',Temp,' degree celcius Please turn on the AC')
else if Temp = 25 then
WriteLn('You are running at Room Temperature')
else
WriteLn('Turn off the Air Conditioner');
ReadLn;
end.
Similar topics
» A Pascal Program to Marks the scores of students in three courses!
» Download IDE/Compiler for Pascal
» Download IDE/Compiler for Pascal
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Feb 12, 2013 7:07 am by Morris
» Download Force3.0 for fortran
Mon Dec 17, 2012 10:41 am by Morris
» A simple Pascal program to turn on/off an AC
Mon Dec 17, 2012 10:23 am by Morris
» Download IDE/Compiler for Pascal
Sat Dec 01, 2012 1:00 am by Morris
» Here is a a FORTRAN COMPILER FOR FREE DOWNLOAD!
Tue Nov 27, 2012 6:56 am by Morris
» ALERT! A NEW TROZAN THAT STEALS YOUR PICTURES
Mon Nov 26, 2012 11:59 am by Morris
» Dell cellular broadband modem.
Sun Sep 23, 2012 6:35 am by Alphamj
» 2011/2012 SPDC Joint Venture University Scholarship Award Scheme
Thu Jul 26, 2012 8:46 pm by Morris
» A mad man and a foolish thief.
Wed Jul 25, 2012 6:33 pm by Alphamj