1 2 3 4 5 6 7 8
//chapter 23 Ex 8 clc; clear; close; n1=50; n2=10; ans1=log10(n1) mprintf("The value of log %d to base %d is %.3f",n1,n2,ans1);