answersLogoWhite

0

What is strong number in C language?

Updated: 10/27/2022
User Avatar

Wiki User

14y ago

Best Answer

Strong number is a number for which sum of factorials of the digits is equal to the given number.

Eg: let us consider 145 where sum of factorials of the digits= 1!+4!+5!=1+24+120=145 i,e., the given number.

c program for strong number is:

#include<stdio.h>

#include<conio.h>

void main()

{

int sof=0,n,dn,ctr,prod,rem;

printf("Enter the number\n");

scanf("%d",&n);

dn=n;

while(n!=0)

{

prod=1,ctr=1;

rem=n%10;

while(ctr<=rem)

{

prod=prod*ctr;

ctr=ctr+1;

}

sof=sof+prod;

n=n/10;

}

if(sof==dn)

{

printf("The number entered is strong number");

}

else

{

printf("The number entered is not a strong number");

}

}

By

Nagarjuna

sri indu ECE,

IBP.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is strong number in C language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the definition of c sharp programming language?

C# is a derivative of C++, designed to allow C++ programmers to take advantage of the .NET environment. Officially, it is an object oriented language that encompasses strong typing and component orientation.


What is the Aram strong number in c plus plus?

If the sum of squares of digits of a number equals to the number itself, then that number is called an aram strong number.


What represents valid integer number in c language?

1500


What is mean by robust language in c language?

Robust means strong enough to withstand or overcome intellectual challenges or adversity. c is a robust language because its rich set of built-in functions and operators can be used to write any complex logic program.


What number is equivalent to -4e3 in c language?

In C, it is -4000.0 In others languages, it is -4000.0


Is 'a' equals ''a'' in c language?

No, the first is a number (0x91), the second is a pointer.


Why c language has name c why not a?

C-language was derived from B-language.


Write a programme for substraction of two numbers in c language?

substracion of any two number program in c


Floating point number in c-language?

any real number e.g, 15.5 1456.223 4568.12


Which language do programmers use if the problem requires a lot of number crunching?

C++


What are some of the top compilers for the C Computer Language currently used in the technology industry?

There are a number of top compilers for the C Computer Language which is currently used in the technology industry. You can try such compilers as C++, C Front and others.


How do you find the smallest largest numbers in c language?

for the largest number: #include&lt;stdio.h&gt; void main() { int a,b,c,number,largestnumber; a=99; b=9; c=77; if(a&gt;b) { number=a; } else if(b&gt;c) { number=b; } else { number=c; } largestnumber=number; printf("%d",largestnumber); }