skip to main
|
skip to sidebar
Basics In Java
Have your bluej fun and use this programs for your project.
Click the Twitter icon to follow our tweets and
know more about us.
Pages
Home
Question's
Function to find product of digits
Posted by
Unknown
|
Functions
,
Level 1
,
Number
|
public int product_of_digits(int n)
{
int k=1;
while(n!=0)
{
k=k*(n%10);
n/=10;
}
return(k);
}
Comments (0)
Post a Comment
Subscribe to:
Post Comments (Atom)
Books I Recommend
Amazon.in Widgets
By Topic
Array
(4)
bruteforce
(3)
Easy
(5)
Extras
(2)
Functions
(2)
Implementation
(6)
Level 1
(15)
Level 2
(10)
Mathematics
(3)
Number
(16)
Strings
(4)
Followers
Comments (0)
Post a Comment