Whats there that creating problem for you? Is it not running, wrong output or you dont understand it?
If you dont understand this, I'd advise you to learn about functions.
basically i have a problem with each mathematical portion
for example }
else if(ctr==5)
{
l2dig=s%100;
l3dig=s%1000;
s=s/100;
l3rddig=s%10;
s=s/10;
if(l2dig==0&&l3rddig==0)
amirtork and Softrix i changed names of variables .now i hope you guy's will better understand it........................if u can explain it to me please
Lets assume I entered the value 10531, modulus is used to find out how many thousands, hundreds, tens etc., and is used to breakdown your integer.
So take this example..
hundredths = s % 100; is simply performing a calculation to determine what the remainder is, so 10531 / 100 = 105 remainder 31 (so here you can see what's below 100 i.e. 31).