Topic: New code for you Stephen  (Read 1332 times)

0 Members and 1 Guest are viewing this topic.

Offline toasty0

  • Application.Quit();
  • Captain
  • *
  • Posts: 8045
  • Gender: Male
New code for you Stephen
« on: June 10, 2005, 11:10:20 pm »
#include <iostream>
//What is going here Stephen?
int main()
{
   int sum=0, val =1;

   while (val<=10)
   {
      sum+=val;
      ++val;
   }
   std::cout<<"Sum of 1 to 10 inclusive is " << sum << std::endl;
   return 0;
}
MCTS: SQL Server 2005 | MCP: Windows Server 2003 | MCTS: Microsoft Certified Technology Specialist | MCT: Microsoft Certified Trainer | MOS: Microsoft Office Specialist 2003 | VSP: VMware Sales Professional | MCTS: Vista

Offline Sirgod

  • Whooot Master Cattle Baron
  • Global Moderator
  • Vice Admiral
  • *
  • Posts: 27844
  • Gender: Male
Re: New code for you Stephen
« Reply #1 on: June 11, 2005, 12:26:14 am »
Oh man, Do I have to answer in code?   ;D

Can It wait untill tomorrow?  ;D

Stephen
"You cannot exaggerate about the Marines. They are convinced to the point of arrogance, that they are the most ferocious fighters on earth - and the amusing thing about it is that they are."- Father Kevin Keaney, Chaplain, Korean War