Calculate sum of M natural numbers starting from N, where N and M should be read from standard input (separated by space). User FOR statement.
So my code is:
I set i=0 because I figured since the sum is supposed to start from N itself then that's the way to do it. The problem is though it doesn't work the way it should. What's wrong with my code? :sigh: