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("&nbsp;&nbsp;");
}
for (int x = 0; x < i; x++)
{
Response.Write("#");
Response.Write("&nbsp;&nbsp;");
}
k--;
Response.Write("<br/>");

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is versioning applicable to private assemblies?

660


What is func c#?

600


What is an interface class in c#?

619


What are different types of classes in c#?

562


Is c# slower than java?

557






What is the meaning of extention?

557


How do I create multifile assembly?

603


Is static class thread safe in c#?

591


What is the delegate in c#?

569


Can a constructor be static in c#?

633


Can main method be final?

549


What is namespace in oop?

587


What are the types of attributes in c#?

573


What is wcf c#?

613


Which framework is best for desktop application?

605