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 many dimensions can an array have?

917


What is get set in c#?

1015


Why do we need abstraction in c#?

970


What is default method in c#?

1091


What is instantiating a class in c#?

1104


What's the c# syntax to catch any possible exception?

1144


What is a private class in c#?

1202


What does char mean in c#?

997


Explain get and set accessor properties?

941


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?

974


What is the difference between writeline and write in c#?

907


What are access modifiers in c#?

1044


how to sort an array in c#

1063


Why do we use virtual methods in c#?

1000


Give an example to show for hiding base class methods?

896