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
Describe the parts of assembly.
What is a constructor in c#?
What is default value of bool in c#?
What does public mean in c#?
Why abstraction is used in c#?
Can property be private in c#?
What is console used for?
What is the purpose of abstract class in c#?
Why are c# strings immutable?
What is a multicast c# delegate?
How do you sort a list in c#?
What is the extension of c# file?
What are PE(Portable Executable)?
What is the advantage of static class in c#?
What is difference between struct and class in c#?