- 1
Write a program to display sum of odd numbers
please
4 ответов
+ 11
int sum =0;
for(int i=0;i<100;i++){
if(i%2!=0)
sum+=i;
}
+ 1
Maybe it works:
for(x=1; x < 100; x+=2) {
System.out.print(x);
}
0
Write a program to display sum of 10 odd numbers using only for loop
0
wap to print pattern *
**
***
****