Skip to content

Instantly share code, notes, and snippets.

@nikhilrajsingh
Created July 25, 2020 17:38
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 nikhilrajsingh/5b35bbd810eedda19ee83f3e191b9052 to your computer and use it in GitHub Desktop.
Save nikhilrajsingh/5b35bbd810eedda19ee83f3e191b9052 to your computer and use it in GitHub Desktop.
Task2
/* Author: Nikhil Raj Singh
* Section: K
*/
public class Task2 {
void computerShop(){
var noOfVarietyOFBrand=(byte)9;
var noOfProductSold=(short)545;
var BestProductId=343284;
var barCode=(long)3232343;
var discountPercent=(float)4.43;
var shopSections=(double)4;
var shopName="Computer World";
var isProductLatest=(boolean)true;
System.out.println("Thank You for viewing the Product info.");
}
}
class RunTask2{
public static void main(String[] args) {
Task2 run =new Task2();
run.computerShop();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment