Ad Code

Ram buys an laptop for Rs.47000 and spend Rs.2000 extra for headset .if he sold the same laptop with headset for 53000 rs. Find Gain using Java.

public class Gain {
 public static void main(String[] args){
 int a=47000,b=2000,SP = 53000;
 int cost = a+b;
 int gain = SP-cost;
 System.out.println("Gain = "+gain);
 }
}
Reactions

Post a Comment

0 Comments