Computer Science, asked by sakshamgarg712, 1 day ago

write a programme of finding the sum of idd numbers from 5-25​

Answers

Answered by ry6635440
2

Answer:

please mention program name like :- java,php,python,c,c++,css,other

Explanation:

I am using java program

public class program

{

   public static void main(String args[])

   {

       int i,j=0;

       for(i=5;i<=25;i+=2)

           j=i+j;

       System.out.println("The sum of all odd number between 5-25 is " +(j));

   }

}

Similar questions