Sum of array elements in java computer applications class 10 Prateik Sharma by Java

preview_player
Показать описание
Sum of array elements in java computer applications class 10 Prateik Sharma by Java

Crash Course Class X ICSE 100 MARKS in 28 days Prateik Sharma by Java

ICSE Computer Applications by Prateik Sharma

Java for ICSE 10

#icse2021
Рекомендации по теме
Комментарии
Автор

This is still helping in 2022.for semester 2 exams. Maine hope kho diya tha. But then aap mil gye. Thanks a lot sir bhaiya

aryanupadhyay
Автор

Sir thank you for all the hardwork you're doing for us.... it is very much appreciated

swapnildash
Автор

6:02
Sir can we do it this way also??

int s = 0;
int[ ] a = new int[10];

for (int i = 0; i < 10; i++) {
System.out.print("Enter 10 numbers : ");
a[i] = sc.nextInt();
s += a[i];
}
System.out.println("The sum of the entered numbers is: " + s);

DogPlanetIndia
Автор

Why did we printed the elements 2 times?

MeeraAgarwal-gqdm
Автор

Y r u using so many loops tho?. Cant we do it in one loop

pintuacherjee
Автор

Sir 3, 4 baar for loop chalane ke wajah humlog without closing the carli braces el hi loop me sab nhi kar sakte kya including operation and printing

artificialsphere
Автор

Sir in the line which you written to calculate the sum of the numbers can u please please please please please explain me the line S= s + a [ i ]

Then in the last line you hv written sopln ("sum = " + s )

Apne sum kaise print kiya konsi value kaha pe gyi plz do help me and explain....

nashraali
Автор

Sir es program ko dry run karke bata dijiye

AYUSH-bmvt
Автор

Sir aapne is Playlist 0 to 100 wale mein ye video beech bana di hai ab sab mess up hogaya kaise continue karein

ayanali
Автор

Please start making videos of computer chapters of class 11 isc .

shivangchaurasia
Автор

Sir in last line why we not use for loop again to print sum of array

वेदार्थबिष्ट
Автор

sir can't we write like this:-
import java.util.*;
class array
{
public static void main()
{
Scanner sc=new Scanner(System.in);
int a[]=new int [10];
int sum=0;
System.out.println("Enter the ten numbers");
for(int i =1;i<=9;i++)
{
a[i]=sc.nextInt();
sum=sum+i;
}
System.out.println("The Sum Of Ten Number Is"+sum);
}
}

ultragaming
visit shbcf.ru