Skip to content

Instantly share code, notes, and snippets.

@MrRahulR
Created May 27, 2021 13:44
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 MrRahulR/737c9035181c13fc137481315badedb1 to your computer and use it in GitHub Desktop.
Save MrRahulR/737c9035181c13fc137481315badedb1 to your computer and use it in GitHub Desktop.
AssignmentOperators.java
package com.qacaffe;
import java.util.Scanner;
public class AssignmentOperators {
public static void main(String[] args) {
int number = 10;
long contactNo = 12313424;
String name = "Rutu Shah";
double average = 77.8;
System.out.println("Number = " + number);
System.out.println("Contact No = " + contactNo);
System.out.println("Name = " + name);
System.out.println("Average = " + average);
}
}
/*
Output -
Number = 10
Contact No = 12313424
Name = Rutu Shah
Average = 77.8
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment