473,322 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Again help...

How can i do a program that makes the numeric center.. this is....
1+2+3+4+5=15 ............ 6= numeric center.... ........7+8= 15.....

of this way 1,2,3,4,5,(6),7,8...
the next is 35 ... (1 a 34) and (36 a 49) the sum of this is: 595
the next program can do that , but it have a mistake and I don`t know
wich is...

While i < n
For i = 1 To numero - 1
sumaA += i
Next
i = numero + 1
While sumaA sumaB
sumaB += i
i += 1
If sumaA = sumaB Then
TextBox1.Text = TextBox1.Text & numero & vbCrLf

End If
End While
numero += 1
sumaA = 0
sumaB = 0
End While

May 4 '07 #1
1 1271


ma************@gmail.com wrote:
How can i do a program that makes the numeric center.. this is....
1+2+3+4+5=15 ............ 6= numeric center.... ........7+8= 15.....

of this way 1,2,3,4,5,(6),7,8...
the next is 35 ... (1 a 34) and (36 a 49) the sum of this is: 595
the next program can do that , but it have a mistake and I don`t know
wich is...

While i < n
For i = 1 To numero - 1
sumaA += i
Next
i = numero + 1
While sumaA sumaB
sumaB += i
i += 1
If sumaA = sumaB Then
TextBox1.Text = TextBox1.Text & numero & vbCrLf

End If
End While
numero += 1
sumaA = 0
sumaB = 0
End While
Wrong language =wrong ng. Thats VB code you posted. Try posting to a
VB (or VB.Net) ng. This is a C++ ng.
May 4 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: jon morgan | last post by:
OK, I'm going to be brave. There is a bug in VS.Net 1.1 that causes random compiler errors. I have raised this issue in posts at least three time in the past couple of months without attracting...
17
by: Gabriel Mejía | last post by:
Services or applications using ActiveX Data Objects (ADO) 2.0 or greater may intermittently return empty recordsets on queries that should be returning valid results. At the time the problem...
4
by: Jerry Krinock | last post by:
I've written the following demo to help me understand a problem I'm having in a larger program. The "main" function constructs a Foo object, and then later "reconstructs" it by calling the...
6
by: teedilo | last post by:
We have an application with a SQL Server 2000 back end that is fairly database intensive -- lots of fairly frequent queries, inserts, updates -- the gamut. The application does not make use of...
3
by: Susan Bricker | last post by:
Greetings. I have three forms that are open at the same time. They are related and cascading. The first form (frmEventAdd) is the anchor. Each event can have many Trials. The second form is...
3
by: The_Coolest_Dolphin | last post by:
Hi C# wizards, I would like to ask you the following question: I'm working on a program with a mainform (a mdiParent called frmMain) and a childform (called frmNieuwk). I use the library...
2
by: Andy Stevenson | last post by:
I'm stuck again I'm afraid, if you'd be kind enough to take a look at this page: http://www.stevenson-central.com/servos/contact.shtml the css is here:...
9
by: Tristán White | last post by:
Hi I am very new to PHP - actually, this is my second day at it, as I've only recently started a new job last week. We're a charity. I have a "No input file selected" problem. A Google search...
2
by: hugz via AccessMonster.com | last post by:
Hey.. I made a starting set-up for my form dat sets my controls RECORD, EDIT, UPDATE into enabled NO.. then when i close the whole database and try to open it again.. the set-up is now different.....
6
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
I have a tab control which has several tab pages. At run-time, switching between the tab pages can take as long as a few seconds. Any suggestions on what I can get to fire at the instant the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.