write program in C# for palindrome? (aug 2009)
write program in C3 for generating below output?(aug 2009)
#
# #
# # #
# # # #
Answers were Sorted based on User's Feedback
Answer / kanan
int k = 3;
for (int i = 1; i <= 4; i++)
{
for (int j = k; j > 0; j--)
{
Response.Write(" ");
}
for (int x = 0; x < i; x++)
{
Response.Write("#");
Response.Write(" ");
}
k--;
Response.Write("<br/>");
| Is This Answer Correct ? | 15 Yes | 1 No |
Answer / elan
Hi Kanan,
Your code will work, however it was very standard one and
in interview, interviewer will expect candidate to provide
answers with regards to Array. In that point of view we
have provide answers using array. It will express our
knowledge in Array to employer.
I hope my answer make sence. Please provide your comments
if you have anything.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / elan
Hi Kannan,
Also my reply is for the following question.
write program in C# for palindrome? (aug 2009)
| Is This Answer Correct ? | 3 Yes | 1 No |
What is dao in c#?
Explain about accessibility modifier 'protected internal'?
What is jit? What are the different types of jit?
What?s the top .NET class that everything is derived from?
4 Answers Hindawi, Siebel, Visual Soft,
Explain how to implement delegates in c#.net
What is private variable?
What is disconnected data architecture in c#?
What is list collection in c#?
what are the differences b/w structure and class?
What Is The Difference Between ViewState and SessionState?
What is stringwriter c#?
How do you implement multiple inheritance in .NET?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)