Structure of Problem Requirements
In this Simple Problem we just add two Number in Java . We Write this Code in Command Prompt and use very Simple way to get Better Understand of Java.
Source Code
import java.util.Scanner;
public class Addition {
public static void main(String[] args) {
int a,b,c=0;
Scanner s = new Scanner (System.in);
System.out.println("Enter Number ");
a = s.nextInt();
System.out.println("Enter Number ");
b = s.nextInt();
c = a+b;
System.out.println (c);
}
}
Output of the Program
Adding two Numbers |
Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.
why your categories link are not working ???????????????????????????????????????
ReplyDeleteVery Soon ... It Working
ReplyDelete