Java Example Program to Add Two Numbers ( User Input )

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ก.ย. 2024
  • in this Java Programming language example / sample program you will learn to write a c program to add two integer numbers entered by the user.
    our Social Media Pages
    / exampleprogram
    / exampleprogram
    / examplecomputerprogram
    Our Website
    www.ExamplePro...
    #JavaProgramming #ExampleProgram

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

  • @anispathan7486
    @anispathan7486 หลายเดือนก่อน +2

    You explaination so clear....please ping me link if you have videos to learn Java for Beginners

  • @JOJO-ig2jw
    @JOJO-ig2jw 2 ปีที่แล้ว +6

    Thanks I was really struggling trying to grasp the concept

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

    Very helpful, thank you so much for the straight forward explanation. Really appreciate it.

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

    Your so Nice to explanation its all clear

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

    thanks you help me so much

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

    Thank you very much

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

    Thank for the tutorial, please for the last step, system.out.println CA I use system out.println("The sum of " + num1 "," + num2 °is°: +sum); that is what I was taught by my Java lecturer, am a computer science student and I just started

    • @Shanthi-iz1lu
      @Shanthi-iz1lu 7 หลายเดือนก่อน

      We can simply use the last printing statement like
      system.out.println("The sum is" +(num1+num2));

  • @focus.255
    @focus.255 3 ปีที่แล้ว +2

    thanks

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

    bro which software you are using to run the java program

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

    Please In what other way can you end the program apart from the "printf" you used \

  • @FX-220
    @FX-220 10 หลายเดือนก่อน +1

    Which software a you using to run java

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

    Learning lad army

  • @shehan9157
    @shehan9157 7 หลายเดือนก่อน

    import java.util.Scanner;
    class Addition {
    public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    System.out.println("Enter your 1st Number : ");
    int FirstNumber = scan.nextInt();
    System.out.println("Enter your 2nd Number : ");
    int SecondNumber = scan.nextInt();
    int add = FirstNumber + SecondNumber;
    System.out.println("Addition is "+add);
    }
    }

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

    aslamoalikum sir can you teach me java ?

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

    num1 and num*BOP*2

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

    sir kindly reply me as soon as possible

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

    Thank you so much

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

      Pleasure

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

      Please provide me the link of software you use so that I can also download it

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

      I'm using eclipse ide here
      For video tutorial check my channel page