Computer Science, asked by usksss847, 9 months ago

Help me please please please please please please please please please please please please please​

Attachments:

Answers

Answered by prashantrohilla32
1

Answer:

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

    Scanner sc=new Scanner(System.in);

    System.out.println("Enter 20 elements");

    int e=0;

    int o=0;

    int sum;

   

    int[]a=new int[20];

   

    for(int i=0;i<20;i++)

    {

     a[i]=sc.nextInt();  

    }

   

    for(int i=0;i<a.length;i++)

    {

        if(a[i]%2==0)

        {

            e=e+(a[i]*a[i]);

        }

        else

        {

            o=o+(a[i]*a[i]*a[i]);

        }

    }

    sum=e+o;

    System.out.println("Sum= "+sum);

 

}

}

Explanation:

its is a java code

Attachments:
Answered by genius1947
0

Answer:

Galileo di Vincenzo Bonaiuti de' Galilei was an Italian astronomer, physicist and engineer, sometimes described as a polymath, from Pisa. Galileo has been called the "father of observational astronomy", the "father of modern physics", the "father of the scientific method", and the "father of modern science". 

Explanation:

Galileo di Vincenzo Bonaiuti de' Galilei was an Italian astronomer, physicist and engineer, sometimes described as a polymath, from Pisa. Galileo has been called the "father of observational astronomy", the "father of modern physics", the "father of the scientific method", and the "father of modern science". 

Similar questions