Wednesday, January 30, 2019

30-01-2019 CTS Practice Coding Programs


  1. lcm,
  2. gcd,
  3. armstrong numbe.
    1. 153370          1^3+5^3+3^3  is 153
  4. ,pallendrome no,
  5. pallendrome string
  6. perfect number.
    1.  6 is perfect number       6 divisible by 1,2,3   so 1+2+3  is 6  
  7. Amicable Number
    1. 321   and 123   are amicable numbers
  8. Amicable string
    1.   abc  and   bca   are amicable strings.



No comments:

Post a Comment