Questions

Q:

Write a c program to check whether a number is strong or not.

Answer

#include<stdio.h>
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

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2125
Q:

Name the veteran Agriculture Scientist who was recently awarded the 1st World Agriculture Prize for 2018.

A) Dr. Deepak Kumar B) Prof. Rakesh Agnihotri
C) Prof. MS Swaminathan D) None of the above
 
Answer & Explanation Answer: C) Prof. MS Swaminathan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 2124
Q:

If x + (1/x) = 2, then what is the value of x64 + x121?

A) 0 B) 1
C) 2 D) -2
 
Answer & Explanation Answer: A) 0

Explanation:
Report Error

View Answer Report Error Discuss

0 2124
Q:

Have you used Threads in Servelet?

Answer

Yes, single thread module

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2124
Q:

What goes in dry and comes out wet?

Answer

A Bath towel or a tea bag are suitable answers.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

1 2124
Q:

Which one of the following pairs of water bodies are connected by the Suez Canal?

A) Indian Ocean-Pacific Ocean B) Mediterranean sea-Black Sea
C) Mediterranean Sea-Red Sea D) Atlantic Ocean-Pacific Ocean
 
Answer & Explanation Answer: C) Mediterranean Sea-Red Sea

Explanation:
The Suez Canal connects the Mediterranean Sea to the Red Sea.
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

1 2124
Q:

What is the maximum number of days of employment a rural poor would get under 'MGNREGA'?

A) 180 days B) 120 days
C) 100 days D) 90 days
 
Answer & Explanation Answer: C) 100 days

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2124
Q:

Four words are given, out of which only one word is spelt correctly. Choose the correctly spelt word and click the button corresponding to it.

A) Counterfeit B) Counterfeet
C) Counter feet D) Counterfiet
 
Answer & Explanation Answer: A) Counterfeit

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2124