answersLogoWhite

0

What is perfect number in c?

User Avatar

Anonymous

13y ago
Updated: 8/19/2019

because I'm mad

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is a perfect number in C programming?

A number sum of whose factors is equal to that number is known as perfect number. Eg. 6 Factors : 1,2,3 1+2+3=6 That's why it is a perfect number


C progam for perfect square number?

One way to square a number is to multiply it by itself.


If a number has an odd number of factors is it a perfect square?

If you mean 'prime' factors, then an odd number of them CAN'T produce a perfect square. Consider 3 factors ... A, B, and C. If their product were a perfect square, then AxB=C, which can't be true if C is a prime number. For non-prime factors, an odd number of them may or may not be a perfect square: Three factors = not a square: 2 x 3 x 5 = 30. Three factors = a square: 2 x 3 x 6 = 36.


What is a perfect number in c language?

Perfect numbers have nothing to do with programming languages. Some of them are: 6, 28, 496, 8128, 33550336.


Make a C programming that displays the first four perfect numbers?

create a program that iterates until it finds a perfect number, then store that perfect number into an array. Continue iterating until you find three more. Then, you have an array of four perfect numbers.


Is 25 a perfect square?

yes b/c 5 times 5 is 25! any number times itself is a perfect square.


Write a c program using while loop to accept a number check and display message whether number is perfect or not?

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


Can you give us a example program of perfect square in turbo C?

#include <stdio.h> #include<process.h> #include<conio.h> void main() { float n,i,c; printf("Enter the number"); scanf("%d",&n); for(i=1;i<=n/2;i++) { c=n/i; if(c==i) { printf("Perfect Square"); getch(); exit(0); } printf("Not a Perfect Square"); getch(); }


What is the sum of the first perfect number and the second perfect number?

The sum of the 1st perfect number and 2nd perfect number is. . . 34!


How do you write a menu-driven Program in java to check a perfect and palindrane number?

import java.io.*;class PerfectPalindrome{private boolean per(int a){int b=0,c=1;for(;c0;b/=10){int d=b%10;c=(c*10)+d;}if(c==a)return true;elsereturn false;}public static void main()throws IOException{BufferedReader in=new BufferedReader(new InputStreamReader(System.in));System.out.println("1. Find a number is a perfect one or not !");System.out.println("2. Find a number is a palindrome or not !");System.out.print("\nEnter your Choice: ");int a=Integer.parseInt(in.readLine()),c;System.out.print("Enter the Number: ");c=Integer.parseInt(in.readLine());boolean b;PerfectPalindrome e=new PerfectPalindrome();switch(a){case 1: b=e.per(c);if(b==true)System.out.print("It is a Perfect Number !");elseSystem.out.print("It is not a Perfect Number !");break;case 2: b=e.pal(c);if(b==true)System.out.print("It is a Palindrome Number !");elseSystem.out.print("It is not a Palindrome Number !");break;default: System.out.print("SORRY!! Wrong Choice!");


What is it called when a number has a whole number square root?

Then the number is called a "perfect square".Then the number is called a "perfect square".Then the number is called a "perfect square".Then the number is called a "perfect square".


Can a perfect number be odd?

If by 'perfect number' you mean 'perfect SQUARE', then yes. 49 is an odd number and a perfect square.