Addition program in java with source code

in this program, the user will not enter a Bacheloratbeit schreiben lassen Kosten from the keyboard. Value is fixed and you can see the output on the screen.

Source Code

import java.io.*;
import java.util.*;
class Add
{
public static void main(String[] args)
{
//Scanner ob=new Scanner(System.in);
System.out.println(“given value of a=5 and b=8”);
int a=5
int b=8
int c=a+b;
System.out.println(“sum of c:”+c);
}
}
 
 

Recommended Post:

Find the solution to the salesforce Question.

Pramod Kumar Yadav is from Janakpurdham, Nepal. He was born on December 23, 1996, and has one elder brother and two elder sisters. He completed his education at various schools and colleges in Nepal and completed a degree in Computer Science Engineering from MITS in Andhra Pradesh, India.He is director of Appan Bazaar Pvt.Ltd., as teacher in Tridev Eng. School , and an Educational Consultant, and he is currently working as a developer and Digital Marketer.



Leave a Comment