Computer Science, asked by SmartSafaa, 6 months ago

statement for :
print sum of all the odd numbers from 10 to 35 ​

Answers

Answered by Kanishkasrivastava
0

Answer:

for python

for I in range(10,35,2):

s=s+I

print("sum=",s)

Explanation:

for java

import java.util.*;

class prg

{

public static void main();

{

scanner in=new scanner(System.in);

for(i=10;i<=35;i=i+2)

{

s=s+i

}

print("sum="+s);

Similar questions