Program to print armstrong numbers in the range from 1 to 1000 | Programming in C

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • This video implements program to print all armstrong numbers in a range from 1 to 1000

ความคิดเห็น • 24

  • @amaldev9193
    @amaldev9193 2 ปีที่แล้ว +6

    This program is wrong
    for a 1 digit number its x
    and 2 digit number its x*x
    3 digit number its x*x*x ..... and so on

  • @priyankaraj215
    @priyankaraj215 ปีที่แล้ว +3

    I can't thank u as much as I want ....the problem of printing only 1 also with me....I spent my whole day to solving this problem.. and you solved it Man....Thans a lot👍👍👍👍

  • @Jayu_Bro
    @Jayu_Bro 3 ปีที่แล้ว +10

    What about 2,3,4,5,6,7,8 and 9?....Aren't they armstrong?🤔

    • @cubeextrainers8598
      @cubeextrainers8598 3 ปีที่แล้ว

      No

    • @chowdeswaripujala1552
      @chowdeswaripujala1552 2 ปีที่แล้ว +3

      Every digit it self Armstrong number

    • @kamal10017
      @kamal10017 8 หลายเดือนก่อน

      No it's not like that
      A no. Is armstrong only if sum of each digit's cube is equal to the number
      Like 153​ (1^3 + 5^3 + 3^3 = 153)
      @@chowdeswaripujala1552

    • @flashop619
      @flashop619 6 หลายเดือนก่อน

      ​@kamal10017 your definition of armstrong numbers is wrong. Most people think original number needs to be equal to sum of cube of all its digits but its actually sum of power of digits raised to number of digits.

    • @kamal10017
      @kamal10017 6 หลายเดือนก่อน

      @@flashop619 I think u didn't understand what I ment so I have edited it

  • @mallasatish1855
    @mallasatish1855 5 หลายเดือนก่อน

    This is wrong logic. Amstrong means sum of each digit raised by power of number of digits in that number. Eg: 1643 as 1^4+6^4+4^4+3^4

  • @excelquest
    @excelquest 3 หลายเดือนก่อน

    Thanks to make this video Sir. can you tell me how to print the comma between the numbers? Because i am unable to do so.

  • @lagansardana
    @lagansardana 2 ปีที่แล้ว +1

    love you brooooooooooooooooooooooooooooooooooooo sooooooo muchhhhhhhhhhhhhhhhhhhhh

  • @sajjadmalik8209
    @sajjadmalik8209 2 ปีที่แล้ว +1

    Thanks alot sir god bless you ✌

  • @arshuarshad1551
    @arshuarshad1551 10 หลายเดือนก่อน

    i have to thanks to help me logic build for this question

  • @jayeshahirrao3868
    @jayeshahirrao3868 ปีที่แล้ว

    why tf 2,3,4 etc are Armstrong number 🙄

  • @hrutikbhalerao
    @hrutikbhalerao ปีที่แล้ว

    Thanks

  • @Rohithkumar-fw8zg
    @Rohithkumar-fw8zg 3 ปีที่แล้ว +1

    But ..sir how to print 1 to n...in C

    • @Anonymous-mb9it
      @Anonymous-mb9it 2 ปีที่แล้ว

      just replace the 1000 with n in the first for loop

    • @aavasroy99
      @aavasroy99 ปีที่แล้ว

      But if I input 10000, the out is showing as the input 1000

  • @amaldev9193
    @amaldev9193 2 ปีที่แล้ว

    then every digit itself is an Armstrong

  • @karanthakur4579
    @karanthakur4579 3 ปีที่แล้ว +1

    THANKS A LOT SIR

  • @bodapatiudayasri2487
    @bodapatiudayasri2487 3 ปีที่แล้ว +1

    Picture is blurr

  • @vibezsenpai5520
    @vibezsenpai5520 2 ปีที่แล้ว

    Sugoi sugoi