write program in C# for palindrome? (aug 2009)
write program in C3 for generating below output?(aug 2009)
#
# #
# # #
# # # #
Answer Posted / 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 |
Post New Answer View All Answers
What is the adv of using System.Text.StringBuilder over System.String?
How many types of polymorphism are there?
What is a static class in c#?
Can I use exceptions in c#?
How Global.asax is used ?
What are virtual classes in c#?
What is a scope in c#?
How do I use the 'using' keyword with multiple objects?
Helo , Help Me , Help Me About : C# Windows Application - Network How To Manage IP Client's Accessiblity To The Internet Share concise Substitute , Minor ISA Server
What is difference between ienumerable and list?
What is iqueryable?
What is the relationship between a process, application domain, and application?
Why generics are used?
You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?
What is the use of partial methods?