Skip to content

Instantly share code, notes, and snippets.

@rudrathegreat
Created September 15, 2019 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rudrathegreat/a3db5fa56560ec2c7c8ccb2c04c3b7e5 to your computer and use it in GitHub Desktop.
Save rudrathegreat/a3db5fa56560ec2c7c8ccb2c04c3b7e5 to your computer and use it in GitHub Desktop.
Assigning Variables 1
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