Yurttas/PL/SL/perl/F/03/01/01/comp 00.pl

 1# 
 2#  Copyright(C) 1998
 3#  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4#
 5#  Permission from use, copy, modify, and distribute this
 6#  software and its documentation for EDUCATIONAL purposes
 7#  and without fee is hereby granted provided that this
 8#  copyright notice appears in all copies.
 9#
10#  date   : January 1, 1998.
11#  author : Salih Yurttas.
12#
13#  comp_00.pl
14#
15
16
17# some computations...
18
19print "--> a : ";
20chomp($a=<STDIN>);     
21$a = $a + 2;
22print "a = ", $a;
23print "\n";
24
25# some more computations...
26
27print "--> a : ";
28chomp($a=<STDIN>);     
29$a = $a + 4;
30print "a = ", $a;
31print "\n";
32
33# some more computations...
34
35print "--> b : ";
36chomp($b=<STDIN>);     
37$b = $b + 4;
38print "b = ", $b;
39print "\n";
40
41# some more computations...
42
43print "--> b : ";
44chomp($b=<STDIN>);     
45$b = $b + 2;
46print "b = ", $b;
47print "\n";