C Practical and Assignment Programs-Armstrong Numbers

preview_player
Показать описание
C Practical and Assignment Programs-Armstrong Numbers

In this video we will understand what is Armstrong numbers. We will also look into the algorithm to check whether given number is Armstrong number or not. And then we will be writing program to check if given number is Armstrong. Now this program is written in C programming language but will work in C++. Fell free to provide you suggestion.

We The Computer Guys
Shreyas Zagade
Aakash Thakur
Ananya Jain
Рекомендации по теме
Комментарии
Автор

Awesome, thank you for explaining everything so quickly and speeding up the video.

mynameisearlb
Автор

@suganya sugi This program is generic ie it can find if the number is Armstrong for 3 digit or even 6 digit. But if you have fixed to a 3 digit number then you don't require loop. Hope this clears your doubt. 

wethecomputerguys
Автор

can you why we are using while loop it possible to use if else for finding armstrong number????

suganyasugi
Автор

correct me if i'm wrong but i think this only works on 3 digit numbers right ?

sachindotel
Автор

hi, can you teach me how to install everything so that i can make a c program on my windows laptop. Its hard for me to go to uni everytime i need to do c program. Thanks!

anjang
Автор

I wanted to print armstrong numbers b/w 101 and 200. The source code which i entered was:
#include <stdio.h>
#include <conio.h>
int main()
{
int reqnum=101, sum=0, digit, temp=reqnum;

{digit=temp%10;
sum=sum+digit*digit*digit;
temp=temp/10;
}
if(sum==reqnum)
printf("%d", reqnum);
Its not giving any output. If you can give the correction and explain.

bhavyapopli
Автор

Thankyou ^^ you've been helpful !

prathyushsunny
Автор

what if we don't know how many digits are there in original number?

amarchaudhari
Автор

it's really
why cant you try for patterns and series

koteswararaoattipatla
Автор

can you make a video of C program to reverse all nos. in an array and print in words the same?

cdz
Автор

what if user enter number contain two digit !! your code will not give proper result.

yousefsalamh
Автор

Nice Can you do it in HTML and upload video?

rinchentshering
Автор

I do not recommend this guy`s video. This is not the correct way to determine an armstrong number... this will only work with numbers between 100 and 999.
Correct way to determine if a number is an armstrong number, is to first determine the length of the number provided by the user. The length will be there power to the sum of each individual number.
You can't assume that the number inserted by the user will always be between 100 and 999. There is armstrong numbers bigger than 1000, thus you have to determine the length of the number, then you can use the pow(number, length) function to get the sum of all the individual numbers, instead of that "sum = sum +

this video made me cringe...

marnusludick
Автор

aare bhai tu khud he confuse hai lagata

Foodie_till_end