Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How to block a class from being inherited further?

895


How is method overriding different from overloading?

1025


How to rotate an Image in C#?

1086


What does char mean in c#?

919


Are c# destructors the same as c++ destructors?

1099


Distinguish between continue and break statement?

1063


What is difference between dll and exe in c#?

960


HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only

930


How do I register my code for use by classic com clients?

872


Can a abstract class have a constructor?

867


how background thread access to ui control?

1030


What is sqladapter c#?

947


What is the difference between null and string empty in c#?

883


What is namespace in oop?

918


How long has c# been around?

971