A table containing decimal nos. from 1 to 100 and their
roman Equivalent was given. We were required to write a
function : char* ConverToRoman(int number) : to
convert the given number( 1<=number<=100) into its numerical
equivalent.
I want a solution in C/C++ language
Answer / monu rohila
public static string GetPalindromeString(string theInputString)
{
int j = 0;
int k = 0;
string aPalindrome = string.Empty;
string aLongestPalindrome = string.Empty ;
for (int i = 1; i < theInputString.Length; i++)
{
k = i + 1;
j = i - 1;
while (j >= 0 && k < theInputString.Length)
{
if (theInputString[j] != theInputString[k])
{
break;
}
else
{
j--;
k++;
}
aPalindrome = theInputString.Substring(j + 1, k - j - 1);
if (aPalindrome.Length > aLongestPalindrome.Length)
{
aLongestPalindrome = aPalindrome;
}
}
}
return aLongestPalindrome;
}
`
| Is This Answer Correct ? | 1 Yes | 14 No |
which company is invented the tally software.
two workers can type two pages in two minuets then how many persons can type 18 pages in 6 minuets
If "basis points" are defined so that 1 percent is equal to 100 basis points, then 75.5 percent is how many basis points greater than 65.5 percent?
Using the digits 1,5,2,8 four digit numbers are formed and the sum of all possible such numbers.
I have applied for AAI Jr.Executive for 2009 batch.plz tell me the syllabus for that paper.my id is rahulaswal07@gmail.com
0 Answers AAI Airports Authority Of India,
Current/most recent employer (Please state full names and address including Country and post code) Current Position Held When would you be available to start work? ONLINE INTERVIEW [INSTRUCTIONS: Give brief answers to all the under listed questions] QUESTIONS ANSWER SPACE 1) What are your years of experience? 2) How do you approach a technical problem? Give an example. How long do you think it would be before you will make a significant contribution to the team/company?
The speed ratio of two trains is 5:7,first train is travelling at a speed of 350 km/hr, what is the speed of the second train?
1027.05 ? 314.005 + 112.25 = ? (a) 825.395 (b) 825.095 (c) 825.305 (d) 825.295 (e) None of these
how to create the alarm using sql queries.In the sense i need to make the computer to produce beep sound for each 1 minute.(hint: by chr(7) we can produce the beep sound)
WHAT IS CALLED FLYING IN AEROPLANE?
A ship started from port and moving with I mph and another ship started from L and moving with H mph. At which place these two ships meet ?
Ben can have a piece of work done in 8 days, Joe can work three times faster than the Ben, Ram can work five times faster than Ben. How many days will they take to do the work together ?