C Program to find LCM of two numbers using loops || LCM of two numbers in c || without recursion

Поделиться
HTML-код
  • Опубликовано: 19 май 2024
  • 1. Compiler Design Playlist: • Compiler Design
    ------------------------------------------------------------------------------------
    2. Computer Organization and Architecture Playlist: • Computer Organization ...
    ---------------------------------------------------------------------------------------
    3. Operating Systems Playlist:
    • Operating Systems
    ----------------------------------------------------------------------------------------
    4. C Programming Playlist:
    • C Programming
    --------------------------------------------------------------------------------------------------------------------------
    5. Java Programming Playlist:
    • JAVA PROGRAMMING
    ---------------------------------------------------------------------------------------------------------------------------------
    6. Data Structures Playlist:
    • Data Structures
    ---------------------------------------------------------------------------------------------------------------------
    7. Web Technologies Playlist:
    • Web Technologies
    ----------------------------------------------------------------------------------------------------------------
    8. C++ Programming Playlist:
    • C++ Programming
    --------------------------------------------------------------------------------------------------------------------------
    9. DAA ( Design and Analysis of Algorithms) Playlist:
    • DAA ( Design and Analy...
    ----------------------------------------------------------------------------------------------------------------------------
    10. Python Programming Playlist:
    • PYTHON PROGRAMMING
    ---------------------------------------------------------------------------------------------------------------------------
    11. DMS ( Discrete Mathematical Structures ) Playlist:
    • Discrete Mathematics (...
    ----------------------------------------------------------------------------------------------------------------------------------
    12. C#.net Playlist:
    • C#.NET
    --------------------------------------------------------------------------------------------------------------------------------------
    13. OOP through Python Playlist:
    • Python OOP ( Object Or...
    ----------------------------------------------------------------------------------------------------------------

Комментарии • 7

  • @SudhakarAtchala
    @SudhakarAtchala  Месяц назад

    #include
    int main()
    {
    int n1,n2,max,i;
    printf("Enter 2 numbers");
    scanf("%d%d",&n1,&n2);
    max=(n1>n2)?n1:n2;
    while(1)
    {
    if(max%n1==0 && max%n2==0)
    {
    printf("LCM is %d",max);
    break;
    }
    max=max+1;
    }
    return 0;
    }

  • @EngineerReveals
    @EngineerReveals Месяц назад

    Namaskara sir
    i wanted to thank you because your lectures helped me clear my ATC ,
    i was suffering from Chicken pox when i was in college , that time i couldn't attend my college lecture and even couldn't appear for semester exam.
    afterwards i found your lecture which helped me clear my doubts and paper as well.
    it's been 4 years but today it came to my mind that i should thank you for making me learn,
    thank you sir ❤

    • @SudhakarAtchala
      @SudhakarAtchala  Месяц назад

      All the best.Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

    • @EngineerReveals
      @EngineerReveals Месяц назад

      @@SudhakarAtchala sure sir

  • @mandaudaykiran2106
    @mandaudaykiran2106 Месяц назад

    Logic explanation is too good

    • @SudhakarAtchala
      @SudhakarAtchala  Месяц назад

      Thanks.Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @benittabenitta5592
    @benittabenitta5592 Месяц назад

    Sir I want to know about how to debug the program in c,c++,java Can u please post some video for it