a week much =]]
Actually not for a class. We did some examples about this in class but I don't get it,so now this is something I am trying to figure out how to do
note that this time I used ++var instead you can use both but this one is basically might take the sam amount of time to proccess but it won't take longer and to end the line you should use it like that
#include <iostream>
usingnamespace std;
int main()
{
int Sum = 0
int current = 1
sum+1=sum
while (Sum!= 5000)
totalSum ++
cout<<totalSum;
cout<<The last number
endl;
}
also at the top your variable is capitalized at the top then you un-cap it when you add it the re-cap it in the while loop
#include <iostream>
usingnamespace std;
int main()
{
int totalSum = 0
int current = 1
++totalSum
while (Sum!= 5000)
totalSum ++
cout<<totalSum;
cout<<The last number
endl;
}