Java Bangla Tutorials 61 : Palindrome Number (practical)

preview_player
Показать описание
➡️ In this video, I will show how to check whether a number is a palindrome in practical.
⭐️ Video Contents ⭐️
⌨️ (00:00) Intro
⌨️ (00:20) Palindrome number
⌨️ (03:00) 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
Рекомендации по теме
Комментарии
Автор

thank you vary much ..really c korar time onk easy program o hard lagto but apnr video dekhe jinis gula ro easy holo

ormeorme
Автор

bia apner vedio golo onake sondar.random number gannarar korob java daye

MRvlog
Автор

package day1;

import java.util.Scanner;

public class Palindrome {

public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int sum = 0, num, temp, rem;
System.out.print("Enter any Number : ");
num = input.nextInt();
temp = num;
while (temp != 0) {
rem = temp % 10;
sum = sum * 10 + rem;
temp = temp / 10;
}
if (num == sum) {
Number");
} else {
System.out.println("Not a Palindrome Number");
}
}
}

tomabanik
Автор

package startjava;

import java.util.Scanner;


public class PalindromeNumber {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int num, temp, reminder, sum=0;
System.out.print("Enter any number : ");
num = input.nextInt();
temp = num;
while(temp!=0)
{
reminder = temp % 10;
sum = sum * 10 + reminder;
temp = temp / 10;
}
if(sum==num)
{
System.out.print("Palindrome number");
}
else
{
System.out.print("Not a Palindrome number");
}

}

}

sitanath
Автор

package javaaplication;

import java.util.Scanner;

public class Palindrome {

public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n, reminder, temp, sum = 0;
System.out.println("Enter number");
n = input.nextInt();
temp = n;
while (temp != 0) {
reminder = temp % 10;
sum = sum * 10 + reminder;
temp = temp / 10;
}

if (n == sum) {
System.out.println("The number is palindrome");
} else {
System.out.println("The number is not a palindrome");
}
}
}

nishatsultana
Автор

I did it using "do while" loop:

package test1;

import java.util.Scanner;

public class PalindromeDemo {

public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int num, r, temp, sum=0;
System.out.print("Enter any number: ");
num = input.nextInt();
temp=num;
do {
r = temp%10;
sum = (sum*10) + r;
temp = temp/10;
}while(temp != 0);
if(num==sum){
System.out.println("The number "+sum+" is a Palindome!");
}
else{
System.out.println("The number "+sum+" is not a Palindrome!");
}
}
}

shakilahmed
Автор

onek boro number dile code run kore na kn sir akto bolben?

ontorsorker
Автор

package secondhomework;

import java.util.Scanner;

public class Palindrome {

public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int num;
System.out.print("Enter any number : ");
num = input.nextInt();
int rem, temp, sum = 0;
temp = num;
while (temp != 0) {
rem = temp % 10;
sum = sum * 10 + rem;
temp = temp / 10;
}
if (num == sum) {
System.out.println("This number is Palindrome");
} else {
System.out.println("This number is not Palindrome");
}

}

}

elorabarua
Автор

package javaapplication4;
import java.util.Scanner;


public class revercedemo {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int r, num, temp, sum=0;
System.out.println("Enter your reverce number : ");
num = input.nextInt();
temp = num;
while(temp!=0)
{
r =temp%10;
sum =sum*10+r;
temp = temp/10;
}
if (sum==num)
System.out.println("its a Palindrome Numbe");

else
System.out.println("it not a Palindrome Numbe");
}}

AppyAIapps
Автор

import java.util.*;
public class AssignmentJava {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Palindrome number
int num, sum = 0, r, temp;
System.out.print("Enter any number: ");
num = sc.nextInt();

temp = num;

while(temp != 0) {
r = temp % 10;
sum = sum * 10 + r;
temp = temp / 10;
}
if( num == sum){
Number");
}else{
System.out.println("Not a Palindrome Number");
}


}
}

msthaque
Автор

package ControlStatement;

import java.util.Scanner;


public class Palindrome {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n, sum=0, temp;
System.out.print("Enter number: ");
n=input.nextInt();
temp=n;
while(temp!=0){
int r=temp%10;
sum=sum*10+r;
temp/=10;
}
if(sum==n)

else
System.out.println("Not Palindrome");
}
}

mhs_