----------------------------------------------------------------------------------------------------------------------
# include <iostream.h>
int main()
{
int num; // to get the number from user.
int sum = 0; //To sum of consecutive numbers.
int flag = 0; // To verify whether reqd sum is get or not
int...
Leave a comment: