Programming
You are Unregistered, please register to gain Full access.    
Desi Forums   


Go Back   Desi Forums > Bethak - The Desi Lounge > Student Zone

Notices

Programming

  Discuss Programming at the Student Zone; *edit...i figured out what was wrong with that program but would appreciate if anyone thats ...

Reply
 

 
Thread Tools
  #1 (permalink)  
Old 12-02-2007, 12:49 AM
EntangleDesi's Avatar
Evolutionist
Location: USA
Gender:
Visit EntangleDesi's Blog
 
Join Date: Oct 2007
Posts: 361
Credits: 1,606
EntangleDesi will become famous soon enoughEntangleDesi will become famous soon enough
Send a message via MSN to EntangleDesi
Programming

*edit...i figured out what was wrong with that program

but would appreciate if anyone thats involved in C++ Programming..
could help me writing another program - we have to write a program to list all the numbers from 112 to 212 along with the cumulative total..
i just need some guidance..plz

Last edited by EntangleDesi; 12-02-2007 at 12:57 AM.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-02-2007, 05:01 AM
Location: United Kingdom
Gender:
 
Join Date: Dec 2007
Posts: 2
Credits: 25
seesite2003 is on a distinguished road
c++ program help

hey man what you got to do is :

take one variable i
start for loop where i=112 and end up with 212 and just write down following thing

j=j+i;

and print j at end you will get total of that all number i think you probably know which data type you should select because that is going to be big amount...

dont forget to declare j out side of the loop as 0 otherwise be problem
Reply With Quote
  #3 (permalink)  
Old 12-05-2007, 12:02 PM
Debonair
Location: India
Gender:
 
Join Date: Jul 2007
Posts: 32
Credits: 189
satya5321 is on a distinguished road
int fromValue=112;
int toValue=212;
int sumTotal=0;
for(fromValue=112;fromValue<=toValue;fromValue++){
use printstatement c.out on fromValue
sumTotal = sumTotal+fromValue;
}
use printstatement c.out on sumTotal
Reply With Quote
  #4 (permalink)  
Old 12-06-2007, 12:05 AM
EntangleDesi's Avatar
Evolutionist
Location: USA
Gender:
Visit EntangleDesi's Blog
 
Join Date: Oct 2007
Posts: 361
Credits: 1,606
EntangleDesi will become famous soon enoughEntangleDesi will become famous soon enough
Send a message via MSN to EntangleDesi
^^thanks guys
Reply With Quote
Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer Programming Song NInA Desi Noke Joke 6 09-15-2008 05:21 PM




Image Hosting Loans Property for sale in Spain Myspace Layouts Glitter Graphics




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44