Java Bangla Tutorials 63 : How to check an Armstrong number (Theory)

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

Dear Brother, you are really Great Teacher.i am very impressed to see you lesson.God bless you.

uttaraclublimited
Автор

Amr CSE subject ta ami book er cheya apnar video dekha beshi shikhechi.
R bujhteo kono problem hoyni alhamdulillah.
Thanks Sir.

fariahossainchowdhury
Автор

onk valo vabe bujhan apni sir, thanks

yusufsarker
Автор

Armstrong number somporke jantam na aage
thanks sir

knowledgeboy
Автор

Sir, your video is Thank you Sir for this video ❤️

yasirarafat
Автор

thanks via, theory dekle buja jai, prectical r dekte hoina

newstime
Автор

apni tutorial bananor jonne kon software ta use kore ?
software ta ki open source?
nam and download link ta pele valo hoto ..thanks a lot

tanim
Автор

vai..apni kon unversity theke cse korchen..

m_tipsbd
Автор

I tried the code by myself and thought why it should be limited just for 3digits number only!!..so, took a mentos and modified the code which will take any length of digit and determine whether Armstrong or not.. here is my code..

public class Armstrong_number {
public static void main(String[] args) {
Scanner input= new Scanner(System.in);
int num, r, count = 0;
int temp, temp1;
int sum=0;
System.out.print("Enter a positive number: ");
num= input.nextInt();
temp=num;
temp1 = num;

while(temp!=0)
{
count++;
temp= temp/10;
}

while(temp1!=0)
{
r= temp1%10;
sum= (int) (sum+(Math.pow(r, count)));
temp1= temp1/10;
}
if(num==sum)
{
System.out.println(num+" is a armstrong number.");
}
else
{
System.out.println(num+" is not a armstrong number.");

}

}
}

souravdhar
Автор

sir, SUM= SUM+ pow(R, 3) evabe likhle ki problem hobe?

a.n_gaming
Автор

অনেক সুন্দর হইছে ভাইয়া❤️

কিন্তু আমার প্রশ্ন এখানে তো তিন ডিজিটের দেখানো হইছে

যদি ইউজার তার ইচ্ছে মতো নাম্বার দেয় তাহলে কি ভাবে করবো?

fazlerabbi
Автор

vaya c video lesson e Java er onk golo tutorial ace
ager kico lesson pacci na
kindly ektu dekben.

ashrafulmomenshuvo
Автор

Theory part gulor sound sona jasce na, jemon 43, 45, 47

sajibbosenewton
Автор

eta only 3 digit er number r jnne, , jekono digit r number er jnne akta code paisi
#include<stdio.h>
#include<math.h>
int main (){
int num, originalNum, remainder, n = 0;
float result = 0.0;

printf("Enter an integer: ");
scanf("%d", &num);

originalNum = num;

// store the number of digits of num in n
for (originalNum = num; originalNum != 0; ++n) {
originalNum /= 10;
}

for (originalNum = num; originalNum != 0; originalNum /= 10) {
remainder = originalNum % 10;

// store the sum of the power of individual digits in result
result += pow(remainder, n);
}

// if num is equal to result, the number is an Armstrong number
if ((int)result == num)
printf("%d is an Armstrong number.", num);
else
printf("%d is not an Armstrong number.", num);
return 0;
}

adulladahalrifat
Автор

amio cse korte chai....eita korle job opportunity kemon

m_tipsbd
Автор

onk valo vabe bujhan apni sir, thanks

mdshejan