Answers

2016-01-31T00:55:33+05:30
See if the programming language is java then the code is:

import java.util.*;
class even
{
    public static void main(String aa[])
    {
        Scanner sc=new Scanner(System.in);
        int arr[]=new int[10];
        int sum=0;
        for(int i=0;i<10;i++)
        {
            System.out.print("Enter number "+(i+1)+" : ");
            arr[i]=sc.nextInt();

            if(!(arr[i]%2==0))
            {
                sum+=arr[i];
            }
        }
        System.out.println("Sum of even numbers :"+sum);
    }
}

0