write a program enter a number check number is perfect number or not
Answers
Answered by
1
Answer:
Program 1. #include<stdio.h> int main(){ int n,i=1,sum=0; printf("Enter a number: "); scanf("%d",&n); ...
Result. Enter a number: 6 6 is a perfect number.
Program 2. C program to print perfect numbers from 1 to 100. #include<stdio.h> int main(){ int n,i,sum; printf("Perfect numbers are: "); ...
Result. Perfect numbers are: 6 28.
PLEASE MARK ME AS BRAINLIEST
Answered by
0
Explanation:
Program -- #include<stdio.h> int main(){ int n,i=1,sum=0; printf("Enter a number: "); scanf("%d",&n); ...
Result. Enter a number: 6 6 is a perfect number.
is it correct??
if it is correct then reply
Similar questions