import java.util.*;
public class SumOfOddIndexces
{
public static void print1()
{
Scanner Sc=new Scanner(System.in);
System.out.println(“Enter 15 Integer”);
int a [ ] = new int [15],sum=0 ;
for(int i=0;i<15;i++)
{
a[i]=Sc.nextInt();
if(i%2!=0)
sum+=a[i];
}
System.out.println(“Sum of Integers which are at Odd Indexces:”+sum);
}
}
In this post i have shared a java program which is mostly asked by students of computer science.
THANK YOU FOR VISITING OUR BLOG.For more related posts and anime,programing,gaming post please regularly check our blog.
Making money as a coder in 2025 is not much of a big or tough…
Lloyds Technology Centre, A tech and data company located in Hyderabad, India. They are part of…
How to Increase Height at Any Age Rise Above: How to Increase Height at Any…
In the fast-paced digital world, we often forget the timeless beauty that nature offers. Today,…
Top 10 Deadliest Kicks in Martial Arts: Master the Art of Knockouts Martial arts is…
How to Optimize Battery Life of Your Smartphone: Tips and Tricks for Prolonging Battery Health…