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 Janakpur Dham, Nepal. He was born on December 23, 1994, 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. Pramod has worked as the owner of RC Educational Foundation Pvt Ltd, a teacher, and an Educational Consultant, and is currently working as an Engineer and Digital Marketer.



Leave a Comment