Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  hello
Language: C/C++
Code:
#include <stdio.h>

int main()
{
    int s=0,n=5,i;
    for(i=0;i<=n;i++)
    {
            if(i%2==0)
            {
                s=s+i;
            }
    }
    printf("the value of sum is %d",s);
    return 0;
}

          
          
Comments: