Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



A table containing decimal nos. from 1 to 100 and their roman Equivalent was given. We were require..

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

Post New Answer

More General Aptitude Interview Questions

out of 55 eggs 5 are defective. what is % of defective eggs

11 Answers   Wipro,


if the sum of five consecutive nos. 35? how many prime numbers are there :

0 Answers   Verifone,


A & B are playing a game .There are 8 oranges in a row on the table.one Player can take 1-4 oranges in a pick (a maximum of 4),one who picks the last orange wins the game.'A' plays first How many oranges should he pick first time inorder to win the game.

0 Answers   Accenture,


Which is the largest??? a)(125)^15 b) (5)^125 c) (625)^20 d) (25)^10

5 Answers   CTS,


a student is ranked 13th from right and 8th from left.how many are there?

14 Answers   Benchmark, Patni,


Total balls z,red balls N remaining are blak balls,then %of black balls equal to

0 Answers  


how do to prepare the sbi exam

0 Answers   State Bank Of India SBI,


what would be the next number in the sequence 2. 20, 74, 110 ?

24 Answers   HCL, TCS,


What is the eligibility criteria for SBI Clerks? I have 55% in 12th & 73% in Graduation, so m i eligible for the post, please let me know at the earliest.!!!

1 Answers  


INDIA HAS SO WITNESSED...........CENSUSES BY 2011. (A) 12 (B) 13 (C) 14 (D)15

1 Answers   HCL,


One of the longest sides of the triangle is 20 m. The other side is 10 m. Area of the triangle is 80 m2. What is the another side of the triangle?

0 Answers   HCL,


Delhi's population is increasing day by day what is the reasong behind it & how can we solve it. G.D QUESTION (amit_nirwan@yahoo.com)

0 Answers   Shell,


Categories