Рет қаралды 20,053
Question: Write a program in java to accept a number and check the number is Perfect number or not using the following Functions.
[Perfect: If the Sum of factors excluding the number itself is equal to the original number then it is termed as a Perfect number ]
Example : 6, 28 etc.
static void accept( ) : to accept the number.
static void perfect(int a): to check the number is Perfect or not.
Write a main( ) method to call the other methods.
THIS PROGRAM's CODE: amplifylearnin...
***************************************************
ALL COMPUTER PLAYLISTS
** Computer Science Class 12 : • Computer Science Class...
** Computer Science Class 11 : • Class 11 Computer Scie...
** Java Programs for Class 11 & 12 : • Java Programs for Clas...
** Computer Applications Class 9 & 10 : • ICSE Computer Applicat...
** Java Programs for Class 9 & 10 : • Java Programs for Clas...
Join this channel to get access to perks:
/ @amplifylearning
You can follow us here,
Twitter :- / alokmaurya95
Instagram :- / alokmaurya95
Facebook :- / amplifylearning
Check out our website :- amplifylearning.co.in
Email us at :- amplifylearning@yahoo.com
********************************************
Join our KZbin family, lets grow together!
Subscribe to Amplify Learning
/ amplifylearning
#AmplifyLearning #Computer #Java