Thread
:
what's wrong with this c++ code?
View Single Post
#
4
(
permalink
)
10-02-2008
Kami Dalton
Peon
Join Date: Oct 2008
Posts: 1
int count=0;int sum=0;
while(count<=number)
{
cout<<number<<"+";
sum = sum + number - count;
count++;
}
cout<<"="<<sum<<"\n";
return 0;
}
Kami Dalton
View Public Profile
Send a private message to Kami Dalton
Find all posts by Kami Dalton