Calculator Console Application in C# Visual Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

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

  • @tashi_wangdu007
    @tashi_wangdu007 4 ปีที่แล้ว +2

    Thank you for this tutorial.
    Do you also have a video for the revise the code section with two classes: Calculator and Program.
    If time permits, could you please rearrange the playlist to be in proper sequential order.
    Thanks again.

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

    Good way to teach people those who have no IT back ground at all .

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

      Muhammad may you explain what exactly is the purpose of using (Console.ReadLine after Switch()) on line 38?

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

    God bless you sir. Thanks for the useful video

  • @AndbalMC
    @AndbalMC 4 ปีที่แล้ว +2

    Very nice! Quality video! Liked

    • @shadsluiter
      @shadsluiter  4 ปีที่แล้ว +2

      Thank you! Cheers!

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

      @@shadsluiter, may you explain what exactly is the purpose of using (Console.ReadLine after Switch()) on line 38?

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

      @@sifisocyprianshezi3824 Readline pauses the app. Prevents it from closing before the user sees the output.

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

      @@shadsluiter Thank You Professor

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

    do you think you can link the tutorial your following?

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

    That is very nice.. thanks so much

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

    how to add an error message when the user tries to enter decimal values in c#?

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

    Thank you sir

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

    Hello, something i do not understand of C# to do something so very simple and addition
    with "c" we do like that :
    float N1,N2,Sum;
    printf("Veuiller entrer N1 : ");
    scanf_s("%f",&N1);
    printf("Veuiller entrer N2 : ");
    scanf_s("%f",&N2);
    Sum = N1+N2;
    printf("La somme des note = %.2f
    ",Sum);
    why with C# Higher langage the "C" it s more complicate to do a simple addition like a "c" ?
    How we can do something like that simply with C# !! that i did not understand we nned to convert and adding method and more more so a lot off line code for just doing 1+1 = 2 ( of course i mean with someone use a keyboard to put Number 1 and number 2 ).
    Thank you for all

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

      A C# console app would look like this. int x = int.Parse(Console.Readline()); int sum = x + x;

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

      @@shadsluiter thank you why we do parse?? Why is not easier then c???

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

      %f in the scanf statement is essentially the same as parse. It interprets the string as a float. Both languages have to indicate that input is supposed to be a number. @@faquir885