JS-Assignment-2

1. Write a program to find big number of given two numbers

2. Write a program to find big one in given three numbers

3. Write a function to find the factors of a given number

4. Write a function to check given number is prime or not

     (Hint: Prime number have only two factors)

5. Write a function to print even factors of given number

6. Write a function to receive a number as arg and return sum of its           digits

         INPUT : 1234

         OUTPUT : 10 (1+2+3+4)


Comments

  1. https://codepen.io/Shravan003/pen/oNapYgq

    ReplyDelete
  2. https://codepen.io/Mahaboob-Basha-the-bashful/pen/rNXpomX

    ReplyDelete

Post a Comment

Popular posts from this blog