summaryrefslogtreecommitdiff
path: root/1553/CH4/EX4.34/4Ex34.sce
blob: ced85481a2ad79c5c79193fd3889b8e47cd7a5c9 (plain)
1
2
3
4
5
6
7
8
9
//chapter 4 Ex 34

clc;
clear;
close;
totalnotes=85; amount=5000; den100=100; den50=50;
notes50=(amount-den100*totalnotes)/(den50-den100);
amount50=notes50*den50;
mprintf("The required amount is Rs.%d",amount50);