void main() { int i,n,sum=0; scanf(“%d”,&n); for(i=0;i<=n;i++) sum=sum+i; printf(“%d”,sum); } The above program is for sum of the numbers from 0 to n. What is the maximum value of n for which the program gives the desired output?
Reveal answer
Fill a bubble to check yourself