Created
July 25, 2020 17:38
-
-
Save nikhilrajsingh/5b35bbd810eedda19ee83f3e191b9052 to your computer and use it in GitHub Desktop.
Task2
This file contains 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
/* 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