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
How to block a class from being inherited further?
How is method overriding different from overloading?
How to rotate an Image in C#?
What does char mean in c#?
Are c# destructors the same as c++ destructors?
Distinguish between continue and break statement?
What is difference between dll and exe in c#?
HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only
How do I register my code for use by classic com clients?
Can a abstract class have a constructor?
how background thread access to ui control?
What is sqladapter c#?
What is the difference between null and string empty in c#?
What is namespace in oop?
How long has c# been around?