Find the value in variable 'sum' after execution
Submit solution
C
Points:
10
Time limit:
10.0s
Memory limit:
64M
Author:
Problem type
Allowed languages
Find the value in variable 'sum' after execution of the below code
include <stdio.h>
int main() { int i=0; int sum = 0; while(i<20) { if(i%5==0) { sum+=i; } ++i; }
printf("\n sum=%d",sum); }
Comments
int main() { int i=0; int sum = 0; while(i<20) { if(i%5==0) { sum+=i; } ++i; }
printf("\n sum=%d",sum); }
include <stdio.h>
int main() { int i=0; int sum = 0; while(i<20) { if(i%5==0) { sum+=i; } ++i; }
printf("\n sum=%d",sum); }