Creating A Function, Calling A Function

  • Uploaded by: SRINIVASA RAO GANTA
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Creating A Function, Calling A Function as PDF for free.

More details

  • Words: 43
  • Pages: 1
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

Related Documents

Function
December 2019 67
Function
November 2019 54
Function
June 2020 25
Function A List
June 2020 1

More Documents from ""