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 many dimensions can an array have?
What is get set in c#?
Why do we need abstraction in c#?
What is default method in c#?
What is instantiating a class in c#?
What's the c# syntax to catch any possible exception?
What is a private class in c#?
What does char mean in c#?
Explain get and set accessor properties?
If I have more than one version of one assemblies, then how'll I use old version (how/where to specify version number?)in my application?
What is the difference between writeline and write in c#?
What are access modifiers in c#?
how to sort an array in c#
Why do we use virtual methods in c#?
Give an example to show for hiding base class methods?