#17 Coding Challenge-3 Part 2 | Java Tutorial Series 📚 in Tamil | EMC Academy

  Рет қаралды 52,963

Error Makes Clever

Error Makes Clever

Күн бұрын

Пікірлер: 192
@zero4one-A13
@zero4one-A13 5 ай бұрын
8:40 class demo{ public static void main(String[] args){ //code def: using array to get ten variables to print using for loop int[] numbers = new int[10]; for(int i=0;i
@armaanr2934
@armaanr2934 2 ай бұрын
Super bro and I also do like this in starting Put the line like this int[] numbers =new int[]{1,2,3,4,5,6,7,8,9,10};
@Peace_pain
@Peace_pain 20 күн бұрын
numbers [1] =20; ithellam for loop kulla potrukinga, for loop use pannanum nu avasiyam illa apdiye podalam Aprm code direct aa ve podalam int[] num={0,1,2,3,4,5,6,7,8,9};
@sarankavin2010
@sarankavin2010 5 ай бұрын
Table program Program: import java.util.Scanner; class array{ public static void main(String args[]) { Scanner scan=new Scanner(System.in); System.out.println("Enter table number"); int num=scan.nextInt(); for (int i=1;i
@thangaprabu5782
@thangaprabu5782 5 ай бұрын
public static void main(String args[]) { Scanner scan = new Scanner(System.in); System.out.println("number of arrays: "); int size = scan.nextInt(); int[] arr = new int[size]; for (int i = 0; i
@madhupriyag4627
@madhupriyag4627 4 ай бұрын
Thanks
@logupavithranlogupavithran2743
@logupavithranlogupavithran2743 2 ай бұрын
bro I have a doubt, what if the size of the array is 7?
@jpjeshma
@jpjeshma 2 ай бұрын
​@@logupavithranlogupavithran2743 user Ena input kudukurangalo atha bro size
@madan478
@madan478 2 ай бұрын
​@@logupavithranlogupavithran2743Index 3 is middle value
@PraveenKr-n3r
@PraveenKr-n3r 14 күн бұрын
in last line, (arr[(size+1)/2]); is correct
@vigneshwaransuriyamoorthy904
@vigneshwaransuriyamoorthy904 6 ай бұрын
public class loop{ public static void main(String[] args) { int[] mark = {10,15,12,45,5,78,45,89,63,10}; for (int i=0;i
@LokEsh-fj3cm
@LokEsh-fj3cm 6 ай бұрын
Super bro
@ramyachitra8814
@ramyachitra8814 8 ай бұрын
public class demo { public static void main(String[] args) { int[] numbers = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; for (int i = 0; i < 10; i++) { System.out.println(numbers[i]); } } }
@harikeshchandraganesh1935
@harikeshchandraganesh1935 6 ай бұрын
get input ma using scanner
@KarthigaVel-h2t
@KarthigaVel-h2t 4 ай бұрын
In question doesn't ask get input
@amudhak6492
@amudhak6492 2 ай бұрын
It is wrong, already you gave a value to the array then what is the purpose of loop and again re assigning the value to it?
@kishorekumar8326
@kishorekumar8326 5 ай бұрын
bro 15:56 la (i
@tech_information2004
@tech_information2004 4 ай бұрын
Ama broo
@haasinis-kj9kl
@haasinis-kj9kl 7 ай бұрын
import java.util.Scanner; class sample { public static void main(String args[]) { Scanner scan = new Scanner(System.in); // STEP 1: Get input for the size of an array System.out.print("Enter the size of the array: "); int size = scan.nextInt(); // STEP 2: Create an array int[] array = new int[size]; // STEP 3: Get input for each element in the array using for loop for(int i = 0; i < size; i++) { System.out.print("Enter number " + (i + 1) + " : "); array[i] = scan.nextInt(); } // STEP 4: Printing the whole array for reference using for loop System.out.print(" "); for(int i = 0; i < size; i++) { System.out.println("Array of " + i + " : " + array[i]); } System.out.print(" "); // STEP 5: To find the middle element in the array int k = array.length; int mid = k / 2; // STEP 6: Print the middle element for both odd and even cases if(k % 2 != 0) { System.out.println("Middle element: " + array[mid]); } else { System.out.print("Middle elements: " + array[mid - 1]); System.out.print(" and " + array[mid]); } } }
@krishharish506
@krishharish506 7 ай бұрын
super 💯
@coolfool1
@coolfool1 6 ай бұрын
Mass🔥
@boobathibossboobathibss4243
@boobathibossboobathibss4243 3 ай бұрын
😮
@mano1950
@mano1950 Ай бұрын
Thanks bro problem ahh paadhile vittadhuku 😂midhiya Naa yosichi yosichi thala Vali vandhuduchi😂but finally I got the output 😅 it's very fun package practice; import java.util.Scanner; public class aaray { public static void main(String args[]) { Scanner abc=new Scanner(System.in); int size=abc.nextInt(); int[] number=new int[size]; int i=0; for(i=0;i
@ErrorMakesClever
@ErrorMakesClever Ай бұрын
Super
@varshafeena2469
@varshafeena2469 Ай бұрын
Can you please share the ans
@gouthambe.y1149
@gouthambe.y1149 6 ай бұрын
Class 5table{ public static void main(String[] args) { for (int i=1;i
@Jeevanplayboy
@Jeevanplayboy 5 ай бұрын
i*5 nu pottale varume bro.. Edhuku i+i*4 nu potrukinga
@Rakesh-j1v9b
@Rakesh-j1v9b 7 ай бұрын
import java .util.Scanner; public class Main { public static void main(String[] args) { Scanner get=new Scanner(System.in); System.out.print("Enter the number:"); int a=get.nextInt(); for(int i=1;i
@ranjt-f2f
@ranjt-f2f 6 ай бұрын
🤜🏻🤛🏻
@umasankari5226
@umasankari5226 6 ай бұрын
Bro print pandra edathula fault eruku bro i podura edathula a podanum bro
@Rakesh-j1v9b
@Rakesh-j1v9b 6 ай бұрын
@@umasankari5226 bro ithu correct than bro "a" pota than bro 2x1=2 ,intha mathiri print hagum bro
@Rakesh-j1v9b
@Rakesh-j1v9b 6 ай бұрын
"a" value is 2 bro
@2aks117
@2aks117 4 ай бұрын
For(i=0;i
@KaviKavi-p7o
@KaviKavi-p7o 5 күн бұрын
System.out.print("Enter table number:"); int tab=scan.nextInt(); for(int i=1;i
@madhanarjun4767
@madhanarjun4767 4 ай бұрын
Question No : 2 class hello{ public static void main(String args[]) { int[] array = {1,2,3,4,5,6,7,8,9,10}; for(int element:array) { System.out.println(element); } } }
@KarthikA-h2y
@KarthikA-h2y 6 ай бұрын
package challenge4; // Print 10 number from an array using forloop public class q2 { public static void main(String[] args) { int[] arr = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; for (int i = 0; i
@Muhammed_Nowfal
@Muhammed_Nowfal 8 ай бұрын
class Demo{ public static void main(String[] args) { int[] a = {1,2,3,4,5,6,7,8,9,10}; for(int x : a){ System.out.println(x); } } }
@harikeshchandraganesh1935
@harikeshchandraganesh1935 6 ай бұрын
get input bro
@sathishkraja2130
@sathishkraja2130 6 ай бұрын
​@@harikeshchandraganesh1935public class ArrayPrintnum { public static void main(String[] args) { Scanner scan=new Scanner(System.in); int[] num-new int[10]; for (int i=0;i
@sathishkraja2130
@sathishkraja2130 6 ай бұрын
Please tell
@Vigneshs-i2n
@Vigneshs-i2n 16 күн бұрын
public class arryaten { public static void main(String [] args) { Scanner Scan = new Scanner(System.in); int [] numbers = new int[10]; for(int i=0;i
@Siva32_7
@Siva32_7 4 ай бұрын
import java.util.Scanner; class MiddleElement { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); // Getting the size of the array System.out.print("Enter the size of the array: "); int size = scanner.nextInt(); // Declaring the array int[] array = new int[size]; // Getting the elements of the array System.out.println("Enter the elements of the array:"); for (int i = 0; i < size; i++) { array[i] = scanner.nextInt(); } // Finding and printing the middle element int middleIndex = size / 2; if (size % 2 == 0) { System.out.println("Middle elements are: " + array[middleIndex - 1] + " and " + array[middleIndex]); } else { System.out.println("Middle element is: " + array[middleIndex]); } } }
@BRUH-fp1qv
@BRUH-fp1qv 3 ай бұрын
chat gpt
@kishorekumar8326
@kishorekumar8326 5 ай бұрын
16:26 import java.util.Scanner; class demo{ public static void main(String args[]){ Scanner s = new Scanner(System.in); System.err.println("Enter yout Table Number"); int a = s.nextInt(); int[] arr = new int [a]; for(int i=0;i
@prachu3110
@prachu3110 3 ай бұрын
import java.util.Scanner; class test5{ public static void main(String args[]) { Scanner scan=new Scanner(System.in); int table=scan.nextInt(); for(int i=1;i
@AjithKumar-ff1bq
@AjithKumar-ff1bq 8 ай бұрын
Bro find and print middle element question ku explanation video la varala
@SRSGAMINGYT-sp
@SRSGAMINGYT-sp 4 ай бұрын
instead of -1 we can remove = from for loop.
@vigneshwaransuriyamoorthy904
@vigneshwaransuriyamoorthy904 6 ай бұрын
import java.util.Scanner; public class siz{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int mark = scan.nextInt(); int[] ma = new int[mark]; for (int i=0;i
@abilash8040
@abilash8040 6 ай бұрын
public class forlooparrayprint10num { public static void main(String[] args) { int [] arr={1,2,3,4,5,6,7,8,9,10}; for(int i=0;i
@ris607
@ris607 4 ай бұрын
For loop la i++ potta loop aagum pota...so i+1 enter panunga
@prakashs497
@prakashs497 12 күн бұрын
Q2 . Print 10 numbers from an array using for loop. Ans: int[] num = new int[10]; num[0] = 11; num[1] = 22; num[2] = 34; num[3] = 45; num[4] = 75; num[5] = 86; num[6] = 79; num[7] = 80; num[8] = 39; num[9] = 90; for(int i=0; i
@VigneshVicky-xj9it
@VigneshVicky-xj9it 8 ай бұрын
Your videos are the most useful for my future thanks for sharing another informative video
@muralisiva8066
@muralisiva8066 Ай бұрын
Scanner scan = new Scanner(System.in); System.out.print("multiplication factor: "); int factor = scan.nextInt(); for (int i = 1; i
@VAISHNAVIREEE-2021
@VAISHNAVIREEE-2021 28 күн бұрын
public class hello{ public static void main(String args[]){ int[] arr = new int[] {1,2,3,4,4,4,4,8,9,10}; for(int i =0;i
@kabilandina11
@kabilandina11 3 ай бұрын
public class Main { public static void main(String[] args) { int [] arry={1,2,3,4,5,6,7,8,9,10}; for(int i=0;i
@cm___aths
@cm___aths 6 ай бұрын
public static void main (String args[]){ Scanner tab= new Scanner(System.in); int le=tab.nextInt(); System.out.println("table for "+le); for(int i=1;i
@avinashr6193
@avinashr6193 5 ай бұрын
Bro neeyanga sollitharathulam puriyuthu bro pannuran coding but oru problem statement kudutha enaku takunu poda varamatikuthu bro
@KaviKavi-p7o
@KaviKavi-p7o 5 күн бұрын
System.out.print("array size:"); int size=scan.nextInt(); int[] elements=new int[size]; for(int i=0;i
@lakchayalaks7145
@lakchayalaks7145 6 ай бұрын
import java.util.Scanner; class main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int size = scan.nextInt(); int[] marks= new int[size]; for(int i= 0;i
@leo__crush
@leo__crush 4 ай бұрын
program for any tables import java.util.Scanner; class num{ public static void main (String args[]){ Scanner scan = new Scanner(System.in); System.out.println("enter the number for which you want the table:"); int tablenumber= scan.nextInt(); for(int i=1; i
@nobeautywithouthealth914
@nobeautywithouthealth914 8 ай бұрын
import java.util.Scanner; public class Practice { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Enter the table's number you want: "); int num = scan.nextInt(); for(int i=1; i
@VashanthSPBEC
@VashanthSPBEC 8 ай бұрын
wrong
@VashanthSPBEC
@VashanthSPBEC 8 ай бұрын
import java.util.Scanner; class hello{ public static void main(String[] args) { Scanner Sc = new Scanner(System.in); int num = Sc.nextInt(); for(int i=1;i
@nobeautywithouthealth914
@nobeautywithouthealth914 8 ай бұрын
Thanks I forgot to change the x2
@hariharan.a2802
@hariharan.a2802 5 ай бұрын
public static void main(String args[]) { int[] mark=new int[10]; for (int i=1; i
@zero4one-A13
@zero4one-A13 5 ай бұрын
bro for loop la int i=0 nu kudutha thane bro 0 to 9 varaikum 10 numbers varum 1 to 9 kuduthal 9 number thane varum change pannikonga
@hariharan.j956
@hariharan.j956 6 ай бұрын
class Hello { public static void main(String[] args) { int[] marks= new int[10]; for(int i =0 ; i
@krishharish506
@krishharish506 7 ай бұрын
class code{ public static void main(String args[]) { // int[] variable=new int[9]; int[] variable={1,2,3,4,5,6,7,8,9,10}; for(int i=0;i
@kuralneriselvan2914
@kuralneriselvan2914 6 ай бұрын
class java { public static void main(String[] args) { int[] num=new int[9]; for (int i=1;i
@anupriya-it5534
@anupriya-it5534 6 ай бұрын
2nd problem: int[] num = {1,2,3,4,5,6,7,8,9,10}; for(int i=0;i
@nitheshnks9878
@nitheshnks9878 6 ай бұрын
👍
@Forfellas
@Forfellas 6 ай бұрын
Import java. util. Scanner ; Class array { P. S. V. M. (Str.in); { Scanner scan = new Scanner (System.in) ; Int table = scan. nextInt() ; Int[] num= new int [10]; For(int I=1;I
@balajicheenu1604
@balajicheenu1604 4 ай бұрын
import java.util.Scanner; public class sample { public static void main(String args[]){ Scanner scan = new Scanner(System.in); System.out.println("enter the number for the table multiplication"); int j= scan.nextInt(); for(int i=1; i
@sameeribrahim8015
@sameeribrahim8015 8 ай бұрын
Bro middle element kandu pidkira part kanom video la check pannunga
@gokulraj703
@gokulraj703 8 ай бұрын
S
@Rasith44
@Rasith44 7 ай бұрын
Broo
@-CA-SuthiV
@-CA-SuthiV 5 ай бұрын
import java.util.Scanner; class ex1{ public static void main(String args[]) { Scanner scan = new Scanner(System.in); System.out.println("How much inputs you need to enter?"); int total = scan.nextInt(); int[] arr = new int[total]; System.out.println("Enter the inputs :"); for(int i = 0;i
@Jeevanplayboy
@Jeevanplayboy 5 ай бұрын
​@@-CA-SuthiV knjm explain pannu bro plz😢😢😢😢
@ash-u2o7k
@ash-u2o7k 4 ай бұрын
​@@Jeevanplayboy bro ippo antha array sizea check panrom suppose athu even a iruntha athuku 2 middle elements irukumla atha print pannanum and odda iruntha atha "total size " / 2 panna namaku mid element Location kedaikum so namma (arr[total size/ 2]) podum bothu namalala mid element a print panna mudiyum..
@santosh_saravanan
@santosh_saravanan 8 ай бұрын
import java.util.Scanner; public class Sample { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Which multiplication table you want :"); int table=scan.nextInt(); for(int i=0;i
@anandkumar-hz9yw
@anandkumar-hz9yw 8 ай бұрын
Wrong
@kaleeswarinagalingam6649
@kaleeswarinagalingam6649 6 ай бұрын
Question 2 code: import java.util.Scanner; import java.lang.System; public class arraycodechallenge { public static void main(String[] args) { int[] x=new int[10]; int i; for( i=0;i
@dimpleking0077
@dimpleking0077 7 ай бұрын
question 2 import java.util.Scanner; public class chall1 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] arr = new int[5]; System.out.println("Please enter 5 integers:"); for (int i = 0; i < 5; i++) { arr[i] = scan.nextInt(); } System.out.println("You entered:"); for (int num : arr) { System.out.println(num); } } }
@dimpleking0077
@dimpleking0077 7 ай бұрын
we can change a arrage value and loop value
@sathyap465
@sathyap465 4 күн бұрын
package Java; import java.util.Scanner; public class Table { public static void main(String[] args) { Scanner obj=new Scanner(System.in); System.out.println("enter a table number:"); int num = obj.nextInt(); //System.out.println("enter value b:"); //int b = obj.nextInt(); for(int i=1;i
@shankarraj3606
@shankarraj3606 4 ай бұрын
Tables Challenge Program :import java.util.*; class Taables{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n=scan.nextInt(); if(n==5){ n = 10; } for(int i=1;i
@prabhuudayakumar5660
@prabhuudayakumar5660 5 ай бұрын
Q4 full answer package Practice_Jav; import java.util.Scanner; public class lesson3q4 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan =new Scanner(System.in); int a = scan.nextInt(); int [] size = new int[a]; for(int i = 0 ; i
@harikeshchandraganesh1935
@harikeshchandraganesh1935 6 ай бұрын
import java.util.Scanner; class test3{ public static void main(String args[]){ Scanner scan = new Scanner(System.in); int num[] = new int[10]; for(int i=0;i
@info-yv3su
@info-yv3su 5 ай бұрын
class ben{ public static void main(String args[]){ int [] n = {1,2,3,4,5,6,7,8,9,10}; for(int i=0;i
@DivyaDivya-wh1vb
@DivyaDivya-wh1vb Ай бұрын
you got the correct ANSWER it is wrong
@info-yv3su
@info-yv3su Ай бұрын
@@DivyaDivya-wh1vb how bro
@Umer-Salman
@Umer-Salman 4 ай бұрын
Middle element concept video is not exist kindly check that bro at 16:26
@Gojohatake-rz5ko
@Gojohatake-rz5ko 4 ай бұрын
int result = arr[size/2]; print(result); ithu middle element print pannum for odd number size
@jayaprakashs4412
@jayaprakashs4412 Ай бұрын
class array_10 { public static void main(String args[]) { int[] nums={1,2,3,4,5,6,7,8,9,10}; for (int i=0;i
@hamshidhan6279
@hamshidhan6279 2 ай бұрын
Hi Anna, Mid Element find pannurathuku Enna Pannanum import java.lang.System; import java.util.Scanner; class hello{ public static void main(String args[]) { System.out.println("What is the Size of your Array?"); Scanner Scan = new Scanner(System.in); int Size = Scan.nextInt(); { System.out.println("What are the Elements in your Array"); } { int[] Element = new int[Size]; { for(int i=0; i
@sagar-72427
@sagar-72427 2 ай бұрын
Super
@sagar-72427
@sagar-72427 2 ай бұрын
But small mistake so once again check
@Gowtham-p5y
@Gowtham-p5y 9 күн бұрын
Midindex=element[size/2];
@dheepak367
@dheepak367 7 күн бұрын
TABLE FOR N import java.util.Scanner; class hello{ public static void main (String args[]) { int N; int [] number = new int[10]; Scanner scan = new Scanner(System.in); N=scan.nextInt(); for (int i=0;i
@Indhumathi-p1q
@Indhumathi-p1q 4 ай бұрын
Scanner scan = new Scanner(System.in); System.out.println("Enter the Values"); int n = scan.nextInt(); int[] ar = new int[n]; for(int i=0; i
@Jenifer-b4l
@Jenifer-b4l 6 ай бұрын
int[] num=new int[10]; for(int i=0;i
@-CA-SuthiV
@-CA-SuthiV 5 ай бұрын
Middle Element solution - import java.util.Scanner; class ex1{ public static void main(String args[]) { Scanner scan = new Scanner(System.in); System.out.println("How much inputs you need to enter?"); int total = scan.nextInt(); int[] arr = new int[total]; System.out.println("Enter the inputs :"); for(int i = 0;i
@computrons2023
@computrons2023 4 ай бұрын
import java.util.Scanner; public class challenge3{ public static void main(String args[]){ Scanner scan = new Scanner(System.in); int arr[] = new int[10]; for(int i=0;i
@gopi6166
@gopi6166 3 ай бұрын
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan= new Scanner(System.in); int[] number= new int[10]; for(int i=0;i
@SundarN-v3u
@SundarN-v3u 4 ай бұрын
import java.util.Scanner; public class MultiplicationTable { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("Enter a number: "); int num = scanner.nextInt(); System.out.println("Multiplication table of " + num + ":"); for (int i = 1; i
@rohanvcse6376
@rohanvcse6376 6 ай бұрын
import java.util.Scanner; class demo{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); for(int i=1;i
@manikandan-sw3gt
@manikandan-sw3gt Ай бұрын
public static void main(String args[]){ int[] a ={1,2,3,4,5,6,7,8,9,10}; for(int i=0;i
@NiranjanJ-l5u
@NiranjanJ-l5u 28 күн бұрын
New
@VidyasriDhanasekaran-kj4yd
@VidyasriDhanasekaran-kj4yd 5 ай бұрын
Romba ValaVala Nu sollitharatha brooo
@hamshidhan6279
@hamshidhan6279 2 ай бұрын
import java.lang.System; import java.util.Scanner; class hello{ public static void main(String args[]) { Scanner Scan = new Scanner(System.in); int[] Score = new int[10]; { for(int i=0; i
@varun9698
@varun9698 5 ай бұрын
question 4 : Middle Element import java.util.Scanner; class hello{ public static void main(String[] args) { Scanner art = new Scanner(System.in); int n = art.nextInt(); int[] num = new int[n]; for(int i=0 ; i
@tn_wolf_25
@tn_wolf_25 4 ай бұрын
Q2 int[]goat={1,2,3,4,5,6,7,8,9,0}; for(int i=0;i
@leo__crush
@leo__crush 4 ай бұрын
import java.util.Scanner; class num{ public static void main (String args[]){ Scanner scan = new Scanner(System.in); int[] score = new int[10]; for(int i=0; i
@sarajwanth4817
@sarajwanth4817 5 ай бұрын
import java.util.Scanner; class hello { public static void main(String args[]) { int i; Scanner scan = new Scanner(System.in); System.out.print("Enter the size of an array:"); int size = scan.nextInt(); int[] arr = new int[size]; for (i=0; i
@varshuvarshini7672
@varshuvarshini7672 3 ай бұрын
import java.util.Scanner; public class ten{ public static void main(String args[]){ Scanner nisha = new Scanner(System.in); int[] numbers = new int[10]; for(int i = 0; i
@thanusanththanus3954
@thanusanththanus3954 9 күн бұрын
import java.util.Scanner; class t{ public static void main(String[]args){ Scanner ex=new Scanner(System.in); int[] marks=new int[10]; for(int i=0;i
@prabhuudayakumar5660
@prabhuudayakumar5660 3 ай бұрын
package working; import java.util.Scanner; public class Coding3_part2_Q4 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan = new Scanner(System.in); int input = scan.nextInt(); int [] array = new int[input]; for (int i=0; i
@hariharan.a2802
@hariharan.a2802 5 ай бұрын
import java.util.Scanner; class array{ public static void main(String args[]) { Scanner scan = new Scanner(System.in); int size =scan.nextInt(); int[] mark =new int[size]; for(int i=0;i
@mahiths2419
@mahiths2419 6 ай бұрын
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] num=new int[10]; { for(int i=0;i
@nvsbflims4624
@nvsbflims4624 8 ай бұрын
class one { public static void main(String[] args) { int[] num = {1,2,3,4,5,6,7,8,9,10}; for (int j = 0; j < 10; j++) { System.out.print(num[j] + " "); } } }
@deadpool4912-m5f
@deadpool4912-m5f 5 ай бұрын
import java.util.Scanner; public class Megna { public static void main(String[] args) { int[] number = new int[12]; Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); for (int i=1; i
@shivak9489
@shivak9489 8 ай бұрын
How to find middle element in array?
@PreethiSiva-gb3qs
@PreethiSiva-gb3qs 6 ай бұрын
Bro...how to find middle element
@-CA-SuthiV
@-CA-SuthiV 5 ай бұрын
@PreethiSiva-gb3qs import java.util.Scanner; class ex1{ public static void main(String args[]) { Scanner scan = new Scanner(System.in); System.out.println("How much inputs you need to enter?"); int total = scan.nextInt(); int[] arr = new int[total]; System.out.println("Enter the inputs :"); for(int i = 0;i
@sasikanth3277
@sasikanth3277 4 ай бұрын
Mid value didn't work
@MisnathSamha
@MisnathSamha 4 ай бұрын
C# video podunga anna please
@attu5116
@attu5116 9 күн бұрын
Brow middle element epdi brow display panrathu
@Siva32_7
@Siva32_7 4 ай бұрын
import java. util. Scanner; class HelloWorld { public static void main(String[] args) { Scanner scan= new Scanner(System.in); int a= scan. nextInt(); for(int i=1; i
@hariharan.g4791
@hariharan.g4791 3 ай бұрын
🤝
@KarthikA-h2y
@KarthikA-h2y 6 ай бұрын
package challenge4; import java.util.Scanner; // Get input for size of an array // Get input for each element in an array // Find the middle element in an array public class q4 { public static void main(String[] args) { try (Scanner scan = new Scanner(System.in)) { // Get the size of an array System.out.print("Enter the size of an array:"); int size = scan.nextInt(); int[] arr = new int[size]; // Get the input for each element in an array for (int i = 0; i
@madhanarjun4767
@madhanarjun4767 4 ай бұрын
//Table Problem Using User input// import java.util.Scanner; class hello{ public static void main(String args[]) { Scanner scan = new Scanner(System.in); System.out.print("Enter Table No:"); int table = scan.nextInt(); for(int i=1;i
@impajith732
@impajith732 3 ай бұрын
import java.util.Scanner; class ok { public static void main(String args[]) { Scanner ajith=new Scanner(System.in); int[] mark=new int[10]; int count=0; for(int i=0;i
@SATHISHKUMARJ-r2x
@SATHISHKUMARJ-r2x 5 ай бұрын
import java.lang.System; import java.util.Scanner; class hello { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int[] score = new int[10]; for(int i=0;i
@nvsbflims4624
@nvsbflims4624 8 ай бұрын
Bro you didn't complete last question last part but I have completed it see this bro please class one { public static void main(String[] args) { try (Scanner inputScanner = new Scanner(System.in)) { System.out.println("Enter size of the array..."); int a = inputScanner.nextInt(); int[] num = new int[a]; for (int i = 0; i < a; i++) { int b = inputScanner.nextInt(); num[i] = b; } if(a % 2 == 0){ int middle2 = a / 2 ; int middle1 = middle2 - 1; System.out.print("Middle Element : " + num[middle1] + ", " + num[middle2]); } else{ int middle1 = a / 2; System.out.print("Middle Element : " + num[middle1]); } } } }
@logadharshini4453
@logadharshini4453 7 ай бұрын
Idhuku output bro.
@JANANIVAECstudent
@JANANIVAECstudent 4 ай бұрын
anna table coding la input get pani code poda sonegala adhu romba confusion ah iruku can you send me a code in comment?
@Alhaque-b7s
@Alhaque-b7s 4 ай бұрын
import java.util.Scanner; class ForLoop { public static void main(String[] args) { int[] numbers =new int[10]; Scanner s = new Scanner(System.in); for(int i =0;i
@ss-ff1qj
@ss-ff1qj 2 ай бұрын
bro 16:26 kaparm video run avala
@pratheeppr3917
@pratheeppr3917 25 күн бұрын
import java.util.Scanner; class hello{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int ab= scan.nextInt(); int[] array = new int[ab]; for(int i=0;i
@UDHAYSRIRAMGMECH
@UDHAYSRIRAMGMECH 5 ай бұрын
Link not working
@user-name-is-Arasu
@user-name-is-Arasu 6 ай бұрын
Broo Full video upload panunga pls🙏🏻
@VijayaKumar-b6s
@VijayaKumar-b6s 18 күн бұрын
int[] num=new int[10]; for (int i = 0; i
@Shamyuktha-17
@Shamyuktha-17 5 ай бұрын
Bro array suthama puriyala confuse aagudhu again video potu soli kudunga
@Kumaresh.S-t1b
@Kumaresh.S-t1b 4 ай бұрын
Yes bro..😢
@012dhakshanar4
@012dhakshanar4 Ай бұрын
import java.util.*; class Main{ public static void main(String args[]){ Scanner j=new Scanner(System.in); int[] no=new int[10]; for(int i=0;i
@shreeaswin3882
@shreeaswin3882 7 ай бұрын
Middle number solve pannala bro atleast caption poduinga bro
@shreeaswin3882
@shreeaswin3882 7 ай бұрын
15:10
@sivaram7690
@sivaram7690 2 ай бұрын
user input table import java.util.Scanner; class hello{ public static void main(String[] args) { Scanner scan=new Scanner(System.in); System.out.println("Enter the number of table which you want="); int table=scan.nextInt(); for(int i=1;i
@sathishkraja2130
@sathishkraja2130 6 ай бұрын
Bro middle element find and print video ila upload panuga
@-CA-SuthiV
@-CA-SuthiV 5 ай бұрын
import java.util.Scanner; class ex1{ public static void main(String args[]) { Scanner scan = new Scanner(System.in); System.out.println("How much inputs you need to enter?"); int total = scan.nextInt(); int[] arr = new int[total]; System.out.println("Enter the inputs :"); for(int i = 0;i
@sathishkraja2130
@sathishkraja2130 5 ай бұрын
@@-CA-SuthiV bro antha channel pathu kathukiga
@-CA-SuthiV
@-CA-SuthiV 5 ай бұрын
@@sathishkraja2130 ithe channel tha bro..
@dhanushramnath1490
@dhanushramnath1490 4 ай бұрын
Bro hhow to find the middle element in the array
@pratheeppr3917
@pratheeppr3917 25 күн бұрын
import java.util.Scanner; class hello{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int ab= scan.nextInt(); int[] array = new int[ab]; for(int i=0;i
@vigneshsubramaniyam1270
@vigneshsubramaniyam1270 3 ай бұрын
Question: to print tables for a number import java.util.Scanner; class qn18{ public static void main(String args[]) { Scanner scan = new Scanner(System.in); System.out.println("Enter the number for which you want the table"); int num = scan.nextInt(); System.out.println("Enter the multiples upto which the table of the number needs to be printed"); int upto = scan.nextInt(); for(int i=1;i
@SundarN-v3u
@SundarN-v3u 4 ай бұрын
video last la how to find mid numer solala bro nega
@pratheeppr3917
@pratheeppr3917 25 күн бұрын
import java.util.Scanner; class hello{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int ab= scan.nextInt(); int[] array = new int[ab]; for(int i=0;i
@tn_wolf_25
@tn_wolf_25 4 ай бұрын
Bro pathi video illa ya
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
The Ultimate Python Programming Roadmap Before you Start🐍 in Tamil
6:05
Let Us Code Together
Рет қаралды 10 М.
But what is a neural network? | Deep learning chapter 1
18:40
3Blue1Brown
Рет қаралды 18 МЛН
7 Лет Опыта в IT | Что я Понял?
19:56
Vlad Mishustin
Рет қаралды 253 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН