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

Поделиться
HTML-код
  • Опубликовано: 12 дек 2024

Комментарии • 171

  • @zero4one-A13
    @zero4one-A13 4 месяца назад +4

    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 Месяц назад

      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};

  • @thangaprabu5782
    @thangaprabu5782 4 месяца назад +23

    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 3 месяца назад +4

      Thanks

    • @logupavithranlogupavithran2743
      @logupavithranlogupavithran2743 Месяц назад

      bro I have a doubt, what if the size of the array is 7?

    • @jpjeshma
      @jpjeshma Месяц назад

      ​@@logupavithranlogupavithran2743 user Ena input kudukurangalo atha bro size

    • @madan478
      @madan478 Месяц назад

      ​@@logupavithranlogupavithran2743Index 3 is middle value

  • @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

  • @sarankavin2010
    @sarankavin2010 4 месяца назад +2

    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

  • @muralisiva8066
    @muralisiva8066 19 часов назад

    Scanner scan = new Scanner(System.in);
    System.out.print("multiplication factor: ");
    int factor = scan.nextInt();
    for (int i = 1; i

  • @jayaprakashs4412
    @jayaprakashs4412 22 дня назад

    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

  • @vigneshwaransuriyamoorthy904
    @vigneshwaransuriyamoorthy904 5 месяцев назад +5

    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

  • @kishorekumar8326
    @kishorekumar8326 4 месяца назад +23

    bro 15:56 la (i

  • @haasinis-kj9kl
    @haasinis-kj9kl 6 месяцев назад +19

    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]);
    }
    }
    }

  • @ramyachitra8814
    @ramyachitra8814 7 месяцев назад +10

    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 5 месяцев назад

      get input ma using scanner

    • @KarthigaVel-h2t
      @KarthigaVel-h2t 3 месяца назад +2

      In question doesn't ask get input

    • @amudhak6492
      @amudhak6492 Месяц назад

      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?

  • @mano1950
    @mano1950 15 дней назад

    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

  • @2aks117
    @2aks117 3 месяца назад

    For(i=0;i

  • @gouthambe.y1149
    @gouthambe.y1149 5 месяцев назад +2

    Class 5table{
    public static void main(String[] args)
    {
    for (int i=1;i

    • @Jeevanplayboy
      @Jeevanplayboy 4 месяца назад +2

      i*5 nu pottale varume bro.. Edhuku i+i*4 nu potrukinga

  • @madhanarjun4767
    @madhanarjun4767 3 месяца назад

    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);
    }
    }
    }

  • @VigneshVicky-xj9it
    @VigneshVicky-xj9it 7 месяцев назад +2

    Your videos are the most useful for my future thanks for sharing another informative video

  • @Siva32_7
    @Siva32_7 3 месяца назад +8

    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]);
    }
    }
    }

  • @prachu3110
    @prachu3110 2 месяца назад

    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

  • @kabilandina11
    @kabilandina11 2 месяца назад

    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

  • @SRSGAMINGYT-sp
    @SRSGAMINGYT-sp 3 месяца назад +2

    instead of -1 we can remove = from for loop.

  • @KarthikA-h2y
    @KarthikA-h2y 5 месяцев назад

    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

  • @hariharan.a2802
    @hariharan.a2802 4 месяца назад

    public static void main(String args[]) {
    int[] mark=new int[10];
    for (int i=1; i

    • @zero4one-A13
      @zero4one-A13 4 месяца назад

      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

  • @Rakesh-j1v9b
    @Rakesh-j1v9b 6 месяцев назад +6

    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 5 месяцев назад +1

      🤜🏻🤛🏻

    • @umasankari5226
      @umasankari5226 5 месяцев назад +1

      Bro print pandra edathula fault eruku bro i podura edathula a podanum bro

    • @Rakesh-j1v9b
      @Rakesh-j1v9b 5 месяцев назад

      @@umasankari5226 bro ithu correct than bro "a" pota than bro 2x1=2 ,intha mathiri print hagum bro

    • @Rakesh-j1v9b
      @Rakesh-j1v9b 5 месяцев назад

      "a" value is 2 bro

  • @AjithKumar-ff1bq
    @AjithKumar-ff1bq 7 месяцев назад +7

    Bro find and print middle element question ku explanation video la varala

  • @shankarraj3606
    @shankarraj3606 3 месяца назад

    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

  • @kaleeswarinagalingam6649
    @kaleeswarinagalingam6649 5 месяцев назад

    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

  • @leo__crush
    @leo__crush 3 месяца назад

    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

  • @cm___aths
    @cm___aths 5 месяцев назад

    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

  • @anupriya-it5534
    @anupriya-it5534 5 месяцев назад

    2nd problem:
    int[] num = {1,2,3,4,5,6,7,8,9,10};
    for(int i=0;i

  • @nobeautywithouthealth914
    @nobeautywithouthealth914 7 месяцев назад +1

    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 7 месяцев назад

      wrong

    • @VashanthSPBEC
      @VashanthSPBEC 7 месяцев назад +2

      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 7 месяцев назад

      Thanks I forgot to change the x2

  • @prabhuudayakumar5660
    @prabhuudayakumar5660 4 месяца назад

    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

  • @sameeribrahim8015
    @sameeribrahim8015 7 месяцев назад +39

    Bro middle element kandu pidkira part kanom video la check pannunga

    • @gokulraj703
      @gokulraj703 7 месяцев назад +3

      S

    • @Rasith44
      @Rasith44 6 месяцев назад +1

      Broo

    • @-CA-SuthiV
      @-CA-SuthiV 4 месяца назад +14

      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 4 месяца назад +2

      ​@@-CA-SuthiV knjm explain pannu bro plz😢😢😢😢

    • @ash-u2o7k
      @ash-u2o7k 3 месяца назад +6

      ​@@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..

  • @Codeo_Phile
    @Codeo_Phile 7 месяцев назад +2

    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 5 месяцев назад

      get input bro

    • @sathishkraja2130
      @sathishkraja2130 5 месяцев назад +1

      ​@@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 5 месяцев назад

      Please tell

  • @hariharan.j956
    @hariharan.j956 5 месяцев назад

    class Hello {
    public static void main(String[] args) {

    int[] marks= new int[10];
    for(int i =0 ; i

  • @dimpleking0077
    @dimpleking0077 6 месяцев назад

    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 6 месяцев назад

      we can change a arrage value and loop value

  • @Indhumathi-p1q
    @Indhumathi-p1q 3 месяца назад

    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

  • @lakchayalaks7145
    @lakchayalaks7145 5 месяцев назад +1

    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

  • @avinashr6193
    @avinashr6193 4 месяца назад +8

    Bro neeyanga sollitharathulam puriyuthu bro pannuran coding but oru problem statement kudutha enaku takunu poda varamatikuthu bro

  • @vigneshwaransuriyamoorthy904
    @vigneshwaransuriyamoorthy904 5 месяцев назад +2

    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

  • @balajicheenu1604
    @balajicheenu1604 3 месяца назад

    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

  • @kuralneriselvan2914
    @kuralneriselvan2914 5 месяцев назад

    class java {
    public static void main(String[] args) {
    int[] num=new int[9];
    for (int i=1;i

  • @krishharish506
    @krishharish506 6 месяцев назад

    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

  • @abilash8040
    @abilash8040 5 месяцев назад +8

    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 3 месяца назад

      For loop la i++ potta loop aagum pota...so i+1 enter panunga

  • @kishorekumar8326
    @kishorekumar8326 4 месяца назад

    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

  • @tn_wolf_25
    @tn_wolf_25 3 месяца назад

    Q2
    int[]goat={1,2,3,4,5,6,7,8,9,0};
    for(int i=0;i

  • @gopi6166
    @gopi6166 2 месяца назад

    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 3 месяца назад

    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

  • @info-yv3su
    @info-yv3su 4 месяца назад

    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

  • @varshuvarshini7672
    @varshuvarshini7672 2 месяца назад

    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

  • @santosh_saravanan
    @santosh_saravanan 7 месяцев назад

    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

  • @computrons2023
    @computrons2023 3 месяца назад

    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

  • @Jenifer-b4l
    @Jenifer-b4l 5 месяцев назад

    int[] num=new int[10];
    for(int i=0;i

  • @VidyasriDhanasekaran-kj4yd
    @VidyasriDhanasekaran-kj4yd 4 месяца назад

    Romba ValaVala Nu sollitharatha brooo

  • @user-name-is-Arasu
    @user-name-is-Arasu 5 месяцев назад

    Broo Full video upload panunga pls🙏🏻

  • @hamshidhan6279
    @hamshidhan6279 Месяц назад +1

    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

  • @leo__crush
    @leo__crush 3 месяца назад

    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

  • @MisnathSamha
    @MisnathSamha 3 месяца назад

    C# video podunga anna please

  • @hamshidhan6279
    @hamshidhan6279 Месяц назад

    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

  • @rohanvcse6376
    @rohanvcse6376 5 месяцев назад

    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

  • @sarajwanth4817
    @sarajwanth4817 4 месяца назад +1

    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

  • @harikeshchandraganesh1935
    @harikeshchandraganesh1935 5 месяцев назад +1

    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

  • @hariharan.a2802
    @hariharan.a2802 4 месяца назад

    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

  • @varun9698
    @varun9698 4 месяца назад +1

    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

  • @prabhuudayakumar5660
    @prabhuudayakumar5660 2 месяца назад

    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

  • @Forfellas
    @Forfellas 5 месяцев назад +1

    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

  • @mahiths2419
    @mahiths2419 5 месяцев назад

    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

  • @-CA-SuthiV
    @-CA-SuthiV 4 месяца назад +2

    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

  • @deadpool4912-m5f
    @deadpool4912-m5f 4 месяца назад

    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

  • @dhanushramnath1490
    @dhanushramnath1490 3 месяца назад

    Bro hhow to find the middle element in the array

  • @madhanarjun4767
    @madhanarjun4767 3 месяца назад

    //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

  • @Umer-Salman
    @Umer-Salman 3 месяца назад

    Middle element concept video is not exist kindly check that bro at 16:26

    • @Gojohatake-rz5ko
      @Gojohatake-rz5ko 3 месяца назад +1

      int result = arr[size/2];
      print(result);
      ithu middle element print pannum for odd number size

  • @sathishkraja2130
    @sathishkraja2130 5 месяцев назад +1

    Bro middle element find and print video ila upload panuga

    • @-CA-SuthiV
      @-CA-SuthiV 4 месяца назад +1

      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 4 месяца назад +1

      @@-CA-SuthiV bro antha channel pathu kathukiga

    • @-CA-SuthiV
      @-CA-SuthiV 4 месяца назад +1

      @@sathishkraja2130 ithe channel tha bro..

  • @shivak9489
    @shivak9489 7 месяцев назад +2

    How to find middle element in array?

  • @PreethiSiva-gb3qs
    @PreethiSiva-gb3qs 5 месяцев назад +3

    Bro...how to find middle element

    • @-CA-SuthiV
      @-CA-SuthiV 4 месяца назад +3

      @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 3 месяца назад

      Mid value didn't work

  • @Shamyuktha-17
    @Shamyuktha-17 4 месяца назад +1

    Bro array suthama puriyala confuse aagudhu again video potu soli kudunga

  • @Siva32_7
    @Siva32_7 3 месяца назад

    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

  • @SATHISHKUMARJ-r2x
    @SATHISHKUMARJ-r2x 4 месяца назад

    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

  • @sivaram7690
    @sivaram7690 Месяц назад +1

    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

  • @KarthikA-h2y
    @KarthikA-h2y 5 месяцев назад +1

    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

  • @Alhaque-b7s
    @Alhaque-b7s 3 месяца назад

    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

  • @SundarN-v3u
    @SundarN-v3u 3 месяца назад

    video last la how to find mid numer solala bro nega

  • @ss-ff1qj
    @ss-ff1qj Месяц назад

    bro 16:26 kaparm video run avala

  • @impajith732
    @impajith732 2 месяца назад

    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

  • @shanmujs
    @shanmujs 3 месяца назад

    anna find middle element??????

  • @nvsbflims4624
    @nvsbflims4624 7 месяцев назад +1

    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]);
    }
    }
    }
    }

  • @nvsbflims4624
    @nvsbflims4624 7 месяцев назад

    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] + " ");
    }
    }
    }

  • @JANANIVAECstudent
    @JANANIVAECstudent 3 месяца назад

    anna table coding la input get pani code poda sonegala adhu romba confusion ah iruku can you send me a code in comment?

  • @shreeaswin3882
    @shreeaswin3882 6 месяцев назад +1

    Middle number solve pannala bro atleast caption poduinga bro

  • @012dhakshanar4
    @012dhakshanar4 14 дней назад

    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

  • @UDHAYSRIRAMGMECH
    @UDHAYSRIRAMGMECH 4 месяца назад +1

    Link not working

  • @tn_wolf_25
    @tn_wolf_25 3 месяца назад

    Bro pathi video illa ya

  • @MUKESHS-n4p
    @MUKESHS-n4p 5 месяцев назад

    intha video laa find and middle element explain pannavey illa, i need that explaintation

    • @-CA-SuthiV
      @-CA-SuthiV 4 месяца назад

      @MUKESHS-n4p 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

  • @VarunKumar-gg7vt
    @VarunKumar-gg7vt 7 месяцев назад

    Anna phyton ku scope illaiya

  • @vigneshsubramaniyam1270
    @vigneshsubramaniyam1270 2 месяца назад

    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

  • @neelag28
    @neelag28 7 месяцев назад

    Enna adhukulla video mudinjirchi.. middle element ah kanom

    • @-CA-SuthiV
      @-CA-SuthiV 4 месяца назад +3

      @neelag28 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

  • @pitchaiMani-d1e
    @pitchaiMani-d1e 5 месяцев назад

    import Java. Until. Scanner
    Class hello {
    Public static void main ( string args ( ) )
    {
    Scanner scan =new scanner ( system. In)
    Int marks [ ] = scan next int (10) ;
    For (int marks i= 0; i

  • @aktharhanfi6053
    @aktharhanfi6053 4 месяца назад

    public class hello {
    public static void main(String[] args) {
    Scanner a =new Scanner(System.in);
    System.out.print("enter a Number:");
    int num=a.nextInt();
    for(int i=1;i

  • @Adherent_D
    @Adherent_D 6 месяцев назад +1

    import java.util.Scanner;
    class hi{
    public static void main(String args[])
    {

    Scanner scan=new Scanner(System.in);
    System.out.print("size:");
    int size=scan.nextInt();
    int a[]=new int[size];
    for(int j=0;j

  • @charranvenky
    @charranvenky 7 месяцев назад

    1st

  • @shaaktibalasubramaniam5169
    @shaaktibalasubramaniam5169 5 месяцев назад +1

    import java.util.Scanner;
    class HelloWorld
    {
    public static void main(String[] args)
    {
    Scanner scan = new Scanner(System.in);
    System.out.println("Enter Array Length");
    int size = scan.nextInt();
    int[] marks = new int[size];
    int mid = size/2;
    for(int i = 0; i < size; i++)
    {
    marks[i] = scan.nextInt();
    }

    System.out.println("The middle length number is:"+mid);
    System.out.println(marks[mid]);
    }
    }

  • @krishharish506
    @krishharish506 6 месяцев назад

    import java.util.Scanner;
    class code{
    public static void main(String args[])
    {
    Scanner object= new Scanner(System.in);
    int o=object.nextInt();
    for(int i=1;i