write program in C# for palindrome? (aug 2009)
write program in C3 for generating below output?(aug 2009)
#
# #
# # #
# # # #
Answer Posted / elan
string sName = "elan";
char[] aName = sName.ToCharArray();
Array.Reverse(aName);
string sReversedName = new string(aName);
if (sName == sReversedName)
{
MessageBox.Show("it is palindrome");
}
else
{
MessageBox.Show("it is not palindrome");
}
| Is This Answer Correct ? | 25 Yes | 10 No |
Post New Answer View All Answers
What is the difference between console and windows application?
What is selector c#?
These questions were asked me in a technical interview: •If we deploy an application on multiple server (like database server, web server) then, each request should be redirected to proper server, then how you will handle it in your code? •How security pinholes will be handled in an application? •What things should be considered while writing a web application? •How will you do load/performance testing of web application? Which framework you will use for it? •How will you implement a cache for results which require a DB access? Please let me know how to write an web application considering all these points. I am not so much aware of architechural design of web application. Your guidelines will be helpful.
What is disconnected data architecture in c#?
What is interface used in c#?
in object oriented programming, how would you describe encapsulation?
What is a cs file?
What are assemblies?
What is Covariance and contravariance in C#?
Explain how do I convert a string to an int in c#?
List out the differences between array and arraylist in c#?
What is the execution entry point for a c# console application?
Explain briefly the difference between value type and reference type?
What is the difference between ref and out parameters in c#?
What is the difference between select and selectmany?