Question: void main ( ) { int a , b , c; for ( a = 1 ;a < = 9 ;a + + ) {

void main(){ int a,b,c; for(a=1;a<=9;a++){ for(b=1;b<=9;b++){ for(c=1;c<=9;c++){ if (100a+10b+c=factorial(a)+factorial(b)+factorial(c){ cout>>a,b,c>>endl; break; }}}}}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!