Computer Science, asked by uniquehamdanih, 2 months ago

Find out the errors in the following

int sum ( int n)
{
if ( n == 0 )
return 0;
else
n + sum( n - 1 );
}

Answers

Answered by itzRealQueen
1

Answer:

Find out the errors in the following

int sum ( int n)

{

if ( n == 0 )

return 0;

else

n + sum( n - 1 );

}

Answered by ITzLoverKing
1

Answer:

Thunderstorm, a violent short-lived weather disturbance that is almost always associated with lightning, thunder, dense clouds, heavy rain or hail, and strong gusty winds. Thunderstorms arise when layers of warm, moist air rise in a large, swift updraft to cooler regions of the atmosphere.

Similar questions