The program is here guys..........
//Finding whether the given number is perfect or not
//Starts here
#include<stdio.h>
void main()
{
int i=1,temp=0,number;
scanf("%d",&number);
while(i<=number/2){
if(number%i==0)
temp+=i;
i++;
}
if(temp==number)
printf("Its a perfect number");
else
printf("Its not a perfect number");
}
//ends here
A hypothetical example could be a program that determines whether a person is eligible to vote based on their age. If the person is 18 years old or above, the program will display a message saying they can vote; if they are below 18, the program will display a message saying they are not eligible to vote.
class perfect{public static void main(int n) // input as parameter{int a=0;for(int i=1;i
When you enter the SSN or EDI number and click on display, you may see a message indicating whether the information is valid or if there was an error in the input. Possible messages could include "Record found," "No record found," or "Invalid number." Additionally, there may be prompts for further action if the information is incomplete or requires correction.
It is unclear whether she has seen your message but has not replied yet.
8086 assembly language program to check wether given number is perfect or not
The past perfect is had fought.The present perfect is has/have fought, depending on whether the subject is singular or plural.The future perfect is will have fought.
pinned
There is no definitive evidence to confirm whether Bach had perfect pitch.
An insurance carrier, whether a private carrier or a government program, is referred to as
IF WS-AGE NUMERIC DISPLAY "NUMERIC" ELSE DISPLAY "NOT NUMERIC' END-IF
No. The only perfect numbers less than 100 are 6 and 28. All known perfect numbers are even - it is unknown whether there are odd perfect numbers.
No, it isn't. In fact, it is not known whether are odd perfect numbers exist. The first perfect numbers are 6, 28, 496, and 8128.