Created
September 15, 2019 10:50
-
-
Save rudrathegreat/a3db5fa56560ec2c7c8ccb2c04c3b7e5 to your computer and use it in GitHub Desktop.
Assigning Variables 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sample | |
{ | |
public static void main(String[] args) | |
{ | |
int num1, num2, answer; | |
num1 = 1; | |
num2 = 2; | |
answer = num1+num2; | |
System.out.println(answer); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment