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
You explaination so clear....please ping me link if you have videos to learn Java for Beginners
Thanks I was really struggling trying to grasp the concept
pleasure :)
Very helpful, thank you so much for the straight forward explanation. Really appreciate it.
Your so Nice to explanation its all clear
Thank you
thanks you help me so much
No problem!
Thank you very much
You are welcome
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
We can simply use the last printing statement like
system.out.println("The sum is" +(num1+num2));
thanks
Pleasure :)
bro which software you are using to run the java program
Eclipse ide
Please In what other way can you end the program apart from the "printf" you used \
Which software a you using to run java
eclipse ide
Learning lad army
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);
}
}
aslamoalikum sir can you teach me java ?
num1 and num*BOP*2
sir kindly reply me as soon as possible
Thank you so much
Pleasure
Please provide me the link of software you use so that I can also download it
I'm using eclipse ide here
For video tutorial check my channel page