summaryrefslogtreecommitdiff
path: root/659/CH1/EX1.4/exm1_4.sce
blob: ad60696a635f200fed9a21f8508e314bd45b49ed (plain)
1
2
3
4
5
6
7
8
9
//            Example 1.4
// SAMPLE PROGRAM 2: ADDING TWO NUMBERS

number=100;
amount=30.75+75.35 ;     //Addition of two numbers
disp(number) ;           //Display  value of number variable
//Display value of amount in floating point with five places in all and two places to the right of decimalpoint
printf("%5.2f",amount);