1.

Write an algorithm to find the sum of first 50 natural number.

Answer»

int s=0;i;

for(i=1;i<=50;i++)

{

s=s+i;

}

cout<<s;



Discussion

No Comment Found

Related InterviewSolutions