summaryrefslogtreecommitdiff
path: root/1553/CH6/EX6.4/6Ex4.sce
blob: 3ed9716c7d794624b3e2d97dab6205063e10d569 (plain)
1
2
3
4
5
6
7
8
9
//chapter 6 Ex 4

clc;
clear;
close;
avg=27;
nums=4;
n=((avg*nums)-(1+2+3+4))/4; //addition of 4 consecutive numbers
mprintf("The largest number is %d",n+6);