Add Numbers
- Write a program in Java to Add two numbers
public class AddTwoNumbers
{
public static void main(String[] args)
{
int num1 = 5, num2 = 15, sum;
sum = num1 + num2;
System.out.println("Sum of these numbers: "+sum);
}
}
Output
public class AddTwoNumbers
{
public static void main(String[] args)
{
int num1 = 5, num2 = 15, sum;
sum = num1 + num2;
System.out.println("Sum of these numbers: "+sum);
}
}
Output
Logo | Subject Name | Subject Type | Credits | |
---|---|---|---|---|
Unix and Shell Programming | 20200424125518 | 4 | ||
Advanced Communication Skills | 20200424125211 | 4 | ||
Management Information System | 20200424125021 | 4 | ||
Dot Net Framework | 20200424124955 | 4 | ||
C Sharp | 20200424163041 | 4 | ||
OOP Object Oriented Programming | 20200424202405 | 4 | ||
SQL - DBMS | 20200506231922 | 4 | ||
DBMS | 20200509144518 | 4 | ||
C Programming | 20210518175736 | 4 | ||
Mobile Computing | 20210518182237 | 4 | ||
OOPS Java ( E Balagurusamy ) | 20210518211650 | 4 | ||
Web Technology | 20210519130129 | 4 | ||
Java Lab Manual | 20210524093603 | 4 | ||
Data Structure | 20210525210548 | 4 | ||
DS Programs | 20210525210935 | 4 | ||
General Knowledge | 20210614172934 | 4 | ||
Computer Graphics | 20210820152614 | 4 | ||
Theory of Automata | 20210917112527 | 4 | ||
Wix | 20240117101401 | 4 | ||
Java Certification1 | 20240927135028 | 4 |