Write a c program to check whether a number is strong or not.
Correct Answer
#include int main(){ int num,i,f,r,sum=0,temp; printf("Enter a number: "); scanf("%d",&num); temp=num; while(num){ i=1,f=1; r=num%10; while(i<=r){ f=f*i; i++; } sum=sum+f; num=num/10; } if(sum==temp) printf("%d is a strong number",temp); else printf("%d is not a strong number",temp); return 0; } Sample output: Enter a number: 145 145 is a strong number
More questions
1. In the relational model, relationships between relations or tables are created by using:
Correct Answer: Object Repository means not a collection of objects it's a common repository for all the people (testing, developers) for seeing all the data in single login for example QA wants to see 5 testers works then he goes to each person login and see the data It's very difficult job for this we can use Object Repository
Correct Answer: The OSI Model is used as a reference model The primary reason the OSI model was created was so that different networks could inter-operate Hence, different networks could communicate