![]() |
|
#1
|
|||
|
|||
I have a problem to solve summation in c++Hi , Every one I have a problem to solve this summation in c++ ;
1/3 + 3/5 +5/7 ....... this the program I wrote CPP / C++ / C Code:
and this is the run Code:
thanks Last edited by admin II : 21-May-2007 at 14:50.
Reason: Please surround your CPP code with [CPP] ... [/CPP]
|
|||
|
#2
|
|||
|
|||
Re: I have a problem to solve summation in c++What should sum equal in the beginning?
|
|
#3
|
|||
|
|||
Re: I have a problem to solve summation in c++The computer cannot view the 1/3 as something because the computer will divide and sum it.
I don't know whether i correct or not. |
|
#4
|
|||
|
|||
Re: I have a problem to solve summation in c++You also never initialized the sum to zero.
No responsibility to be taken for any advices. |
|
#5
|
|||
|
|||
Re: I have a problem to solve summation in c++Thanks it finally work.
|
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with using classes as Parameters and Return Types | wmbest2 | C++ Forum | 3 | 13-Mar-2007 21:08 |
| Hitting a logic problem I can't solve | Elsydeon | C++ Forum | 3 | 09-Oct-2005 22:29 |
| Graphic problem in Unreal Tournament 2004 | zerox | Computer Software Forum - Games | 10 | 09-Oct-2005 13:31 |
| a significant problem after installing Xp | mohammad | Computer Software Forum - Windows | 10 | 09-Aug-2005 08:03 |
| Please help to solve me a problem with multiline texrbox and checkbox | mithila | MS Visual C++ / MFC Forum | 0 | 08-Sep-2004 23:08 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The