write program for following to find the sum of squares of odd numbers up to 10 terms
Answers
Answered by
1
import java.io*;
class Sum
{
public static void main (String args [])
{
int i , os=0;
for (i=0; i <=10; i++)
if (i% 2!=o)
os=i*i+os;
System.Out.println ( "sum of odd no ="+os);
}
}
bhumikasharmakod:
sorry their import java io*; will not be their . Becozzz this program is of assign value.
Similar questions