1.

Write a C++ program to check whether a number is palindrome or not.

Answer»

/* A palindrome number is a number that remains same after reversing the digits. */#include<iostream.h>#include<conio.h>void main(){ int num, n, rem, rev=0; clrscr(); cout<<"Enter a number:"; cin>>num; n=num; //Used for comparision after reversal of a number while(num>0) { /* In this block, we retrieve each digit from a given number and will get the reversed number at the end stored at rev variable. */ rem=num%10; rev=(rev*10)+rem; num=num/10; } if(n==rev) //Comparing given number with reversed number cout<<n<<" is a palindrome."; else cout<<n<<" is not a palindrome."; getch();}Conclusion:

We hope that you found this article very INFORMATIVE and useful for your preparations for the Infosys interview process. Now prepare yourself for every question thoroughly as this is going to upgrade your understanding of the Infosys recruitment process. In addition, you can also take imagination from these questions as to what type of questions are being asked in the Infosys interview process and how effectively your RESPONSES should be put across to the interviewer.

The Infosys interview will usually have a varied set of questions, however, the above questions will definitely touch every such aspect. In order to get a better hold on the Infosys interview questions, please spend your time learning deeper about concepts that are relevant to the job role.

If a particular candidate is not been selected, then Infosys does not allow him/her to re-apply for the next six months, hence give it your BEST shot so as to pursue your dream CAREER in Infosys. Remember, while no one can predict the questions that are going to be asked by the interviewer, preparation becomes the key element to succeed in the Infosys placement process. To be precise, the interview process at Infosys is not very difficult; so you should be able to grab the opportunity with heavy preparations and a little bit of luck. Know More.



Discussion

No Comment Found