Java Bangla Tutorials 79 : Array | find output program (part-1)

preview_player
Показать описание
➡️ In this video, I will show how to practice output-related programs with Array.
⭐️ Video Contents ⭐️
⌨️ (00:00) Intro
⌨️ (00:11) find the output
⌨️ (06:28) outro

🛑 Web development? Checkout following playlists :

🛑 Programming languages? Check out the following playlists:

🛑 Android development? Check out the following playlists:

🛑 HSC Students? Are you worried about ICT? I have created 377 videos for you. check out the following playlists-

🛑 CSE Students? Checkout following playlists :

🛑 MS Office? Trying to learn MS office to improve your skill? Checkout following playlists :

#java #anisul_islam #java_bangla_tutorial #web_development #bangla_web_development #andorid #javaprogramming #javatutorial #bangla_tutorial #java_anisul_islam
Рекомендации по теме
Комментарии
Автор

Very nice vedio, It is very important for education, many many thanks
Delwar from London

delwarmahdi
Автор

boji na ato sundor education video er modde dislike de ke?

bemathpro
Автор

Array use na korei program ta kora jy. Taile code ta aro simple hoi. Hope this will be helpful.


package javaforbeginners;

public class TestDriveDemo {

public static void main(String[] agrs) {

int i = 0, row, col;

for(row=0; row<4; row++) {

for(col=0; col<5; col++) {
System.out.print(i+" "); //i is set 0 at first
i++; //i will be incremented after each loop
}
System.out.println();
}
}
}

imtiazahmedakash
Автор

easy to asign.. thanks for a beatiful tutorial

raselmojumder
Автор

package Array;

import java.util.Scanner;


public class Output {
public static void main(String[] args) {
Scanner ad = new Scanner(System.in);
int n, m, k=0;
System.out.print("Enter row length: ");
n=ad.nextInt();
System.out.print("Enter colume length: ");
m=ad.nextInt();
int a[][]=new int[n][m];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
a[i][j]=k;
k++;
}
}
System.out.println("Required matrix: ");
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
System.out.print(a[i][j]+" ");
}
System.out.println();
}
}
}

mhs_
Автор

nicc, apner java scrip nea video asa?jode na taka pls next java scrip nea video make korran.{you r great}

bangladeshcricke
Автор

package ArrayPackages;

import java.util.Scanner;

public class ArrayOutput {

private static int i;
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int[][] num= new int[4][5];

int k=1;
for (int row =0; row < 4; row++) {
for (int col = 0; col < 5; col++) {
num[row][col] =k;
k+=2;
}
}

for (int row =0; row < 4; row++) {
for (int col = 0; col < 5; col++) {
System.out.print(" "+num[row][col]);
}
System.out.println();
}

}
}
output: odd number

mdrajib
Автор

Vaiya java r jonno kon framework valo hobe ba apnar sob gulu sikhar por r ki sikhbo? janaben plz.

surujmiah
Автор

package classofarray;

public class ArrayOne {

public static void main(String[] args) {
System.out.println("Enter numbers for A matrix : ");
int[][] A = new int[4][4];
int row, col, k = 0;
System.out.println("A = ");
for (row = 0; row < 4; row++) {
for (col = 0; col < 4; col++) {
System.out.print("\t"+k);
k++;
}
System.out.println("");
}

}

}

elorabarua
Автор

t put ta colum akare ase
R love ouYes

MdRayhan-ts
Автор

package array_learning;


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


int[][] num=new int[4][5];
int k=0;
//assigning the value
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 5; j++) {
num[i][j]=k;
k++;
}
}


//printing element
for (int i = 0; i < 4; i++) {
for (int j = 0; j <5; j++) {
System.out.print(" "+num[i][j]);
}
System.out.println();
}
}
}

susmita
Автор

package trial;

public class Main{
public static void main(String[] args){
int i, j, k=0;
int[][] a = new int[4][5];
for(i=0;i<4;i++)
{
for(j=0;j<5;j++)
{
a[i][j]=k;
k++;
}
}
for(i=0;i<4;i++)
{
for(j=0;j<5;j++)
{
System.out.print(" "+a[i][j]);
}
System.out.println();
}
}
}

higurudematsu
Автор

This Code Also worked. Which one do you preferred?

for (int i = 0; i < 4; i++) {
for (int j = 0; j <5; j++) {
number[i][j]= k;
k++;
System.out.print(" "+k);
}
System.out.println();
}

khosruvai
Автор

public class Array14 {
public static void main(String[] args) {
int[][] number = new int [4][5];
int k = 0;

//assigning the balue to the 2d array
for(int i = 0; i<4; i++){
for(int j = 0; j<5; j++){
number[i][j] = k ;

k++;
}
}
//printing the elements

for(int i = 0; i<4; i++){
for(int j =0; j<5; j++){
System.out.println(" "+number[i][j]);
}
System.out.println();
}

}

}

MdRayhan-ts
Автор

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

int [][] matrix = new int [4][5];
int k =0;

for(int i=0; i<4; i++){
for(int j=0; j<5;j++){

matrix[i][j] = k;

System.out.print(" "+k);

k++;

}

System.out.println();
}

}

}

ItZzShuvo
visit shbcf.ru