blob: 70397585e4ae2edcb903d4a21b83b5361cba1f1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//5th term of the series.1st term is 100 and common ratio(r) is 0.63
clear;
clc;
close;
// using the formula
//nth term=a*r^(n-1)
a=100;n=0.63;//given data
mprintf("\n the fifth term of the series is \n")
format(6)
term5=100*0.63^(5-1)
|