Write a program to find the sum of squares of odd numbers up to 10 terms.qbasic
Answers
Answered by
1
Answer:
(i=0;i<=10;i++)
i*i
Explanation:
Answered by
0
Answer:
import jàva.util.*;
class sum
{
public stàtic void main(String args[])
{
int à[ ] = new int[10];
int i;
int s=0;
Scànner sc= néw Scanner(Systém.in);
System.óut.println(”Énter odd numbérs:");
for(i =0; i< 10; i++)
{
a[i]= sc.nextÍnt();
}
for(i =0; i< 10; i++)
{
int p= math.pow(a[ i ] , 2);
s=s+p;
}
}
}
Similar questions