473,836 Members | 1,486 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

c# code needed...urgent !!

16 New Member
could any one gimme coding ... to have out put like this-

**********
****--****
***----***
**------**
*--------*
**------**
***----***
****--****
**********
(note::here, i'm unable post this question with more spaces in between the *s. so,i have inserted - symbol instead of spaces)

please dont kid by sending code ..jus using response.write.

thank you
Apr 18 '07 #1
2 971
vanc
211 Recognized Expert New Member
for i = 0 ----> 5
{
for j = 0 ----> 5 - i
write *
for k = 0 ----> i*2
write -
for j = 0 ----> 5-i
write *
}

reverse this loop to get full output

cheers,
Van.
Apr 19 '07 #2
vanc
211 Recognized Expert New Member
string output="";

for(int j = 0;j <5; j++)
{
for (int i = 0; i < 5 - j; i++)
output += "*";
for (int k = 0; k < j * 2; k++)
output += "-";
for (int i = 0; i < 5 - j; i++)
output += "*";
output += "\n";
}
for (int j = 5; j < 9;j++ )
{
for (int i = 0; i < j-3; i++)
output += "*";
for (int k = 0; k < (8-j) * 2; k++)
output += "-";
for (int i = 0; i < j-3; i++)
output += "*";
output += "\n";
}

Cheers.
Apr 26 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1587
by: Shilpa | last post by:
Hi All, I need C# code needed to open the windows "Open with" dialog Regards, Shilpa
5
2535
by: bromio | last post by:
can someone help me to make code for digital clock using AT89S52. The specs of clock are 12 hour clock,am-pm display,use timer interrupts to have delay.two external inputs to adjust hours and minutes,use 4 digit hex display multiplexing.
0
1500
by: ultradiv | last post by:
I have a VB.NET application partly built that produces an xml output (just a file at present) I have a .NET webserver and SQLserver 2000 I need to be able to send the xml to the webserver/database (some crunching is needed before the data is stored) The database (stored proc.) will reply with several small pieces of data which need to be sent back to the client app. I am thinking that all of this could be accomplished in one call to a...
1
2130
by: Hardeek Thakkar | last post by:
Dear friends, In my current project I am using the CustomCollections with the help of BindingList<Tgeneric class to store the database records instead using DataSet objects as offline database identities. Now I do have a large number of property classes each having a large number of properties in it. I want to implement the INotifyPropertyChanged interface in every
6
2173
by: gabrielvarun | last post by:
Hello everybody, Thanks for everybody who tries to help me out. I need code for connecting to a remote database(Sql server2000) through the vb.net 2003. The sql server will be placed remotely outside the lan. Please help me. Yours Faith fully, Varun. sd/-
3
4284
by: manigattani | last post by:
Please let me know of some java code for converting dbf file to text file
4
1251
by: slinky | last post by:
I've tried this week everything I can think of to get this code to work , can any kind soul take a look at my code and my what should be a simple task and help me out. I've looked in books, websites, and can't find a solution... thanks! I have an aspx for with a textbox and a button. The goal is to simply have the user type a message, hit the button and it should append to the XML file. I can open the aspx in the browser with no problem,...
8
2250
by: manugm1987 | last post by:
<?xml-stylesheet type="text/xsl" href="ch1.xsl"?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <style type="text/css"> span.cls_002{ font-family:Arial,serif;font-size:22px;color:rgb(51,51,51);font-weight:bold;font-style:normal} div.cls_002{font-family:Arial,serif;font-size:22px;color:rgb(51,51,51);font-weight:bold;font-style:normal}...
0
9665
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10541
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10584
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7782
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6976
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5817
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4446
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4006
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.