sivaramaiah  
 
  Record4 01/18/2025 5:20am (UTC)
   
 

Record 4

4. Creating a Function, Calling a Function

----------------------------------------------- 

function poly(x:Number):Number

{

            var res=0,x1;

            while(x>0)

            {

                        x1=x%10;

                        x=Math.floor(x/10);

                        res=res*10+x1;

            }

            return res;

}

var n:Number=323;

var n1=poly(n);

if(n==n1)

trace("Given number is palindrome");

else

trace("Given number is  not palindrome");

Output


Given number is palindrome

 
 
  Menu Items
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

  add
HOT TOPICS
MCA PROJECT DETAILS ------------------------------------- Jntu all Lab manuals ------------------------------------- Jntu Syllabus Books ------------------------------------- Paper presentations ------------------------------------- Seminars ------------------------------------- Campus Papers ------------------------------------- Competetive Exams GATE ------------------------------------- GRE ------------------------------------- TOEFL ------------------------------------- IELTS ------------------------------------- CAT ------------------------------------- GMAT ------------------------------------- Templates ------------------------------------- Students Resume Preparation tips ------------------------------------- Job zone(Interview questions) ------------------------------------- Google Adsence html code ------------------------------------- Web sites --------x--------------x-----------
  Advertisement

 


-----------------------------
  Offline Messages
  Adds
  Visitors Information
Today, there have been 133369 visitors (304343 hits) on this page!
-------------------------------------------------- This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free