Forum : program
Brief description  about Online courses   join in Online courses
View savitri g rampur 's Profile

program

Please give me a Java program that simply tells me if my company is on profit, loss or no gain no loss.
By savitri
Asked by savitri g rampur | Oct 5, 2010 |  Reply now
Replies (1)
View arun kumar das 's Profile
class testing
{
public static void main(String args[])
{
int investment = 10000;
int Sales = 12000;
if(investment > Sales)
System.out.println("Sorry! Your Company is in loss");
else if(investment < Sales)
System.out.println("Hurray! Your Company is in Profit");
else
System.out.println("Your Company is not making profit nor is under loss");
}
}
Oct 6, 2010