Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,152,113 members, 7,814,911 topics. Date: Wednesday, 01 May 2024 at 11:02 PM |
Nairaland Forum / Science/Technology / Programming / Get Your Programming Problems Solved (920 Views)
Top Dev's Share Your Programming Journey / Larisoft Clean Desktop: (re: Operation Prove Your Programming Skills) / Operation Prove Your Programming Skills (2) (3) (4)
(1) (Reply)
Get Your Programming Problems Solved by Nobody: 10:41am On Jul 19, 2016 |
Lazy Programmer's joint # p1 Java program: /** * @program: DISSARIUM * @description: To check whether a number is a Dissarium no or not. * @author: Emmypong * @email: emmypongaim@gmail.com */ public class DISSARIUM { public void input(int n) { int num=n,sum=0,d,c=0; while(num>0) { c++; num = num/10; } num = n; while(num>0) { d = num%10; sum = sum + (int) Math.pow(d,c); num = num/10; System.out.println(c); --c; } if(sum==n) { System.out.println(n+" is DISSARIUM" u } else { System.out.println(n+" is not DISSARIUM" } } } get these type of short codes and alse request your choice code at :: https://free.facebook.com/dbasement.tk/ |
(1) (Reply)
Development Of Apps / Ethical Hacker / You Want To Be A WEB DEVELOPER?
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 6 |