MeraForum Community.No 1 Pakistani Forum Community

MeraForum Community.No 1 Pakistani Forum Community (http://www.MeraForum.Com/index.php)
-   Java (http://www.MeraForum.Com/forumdisplay.php?f=217)
-   -   Calculator Using if Statement In Java (http://www.MeraForum.Com/showthread.php?t=113521)

Morash 04-17-2014 01:19 AM

Calculator Using if Statement In Java
 



Calculator Using if Statement In Java




The if statement Is Used To Execute Or Ignore A Set Of Statements After Testing A Give Condition.
If The Given Condition Is True The Following Statement Will Be Executed Otherwise Will Be Ignored
And The Control Will Transfer To The Next Statement.


Syntax

if(condition)
{
Statement;
}





Example

http://i59.tinypic.com/2vmgcib.jpg


Output


Addition

http://i61.tinypic.com/2n9yomp.jpg



Subtraction

http://i60.tinypic.com/2rmkx8p.jpg



Multiplication

http://i62.tinypic.com/xkobro.jpg



Division

http://i59.tinypic.com/2aewjd0.jpg



pakeeza 04-17-2014 10:20 AM

Re: Calculator Using if Statement In Java
 
Thnks For Nice ShaarinG

AYAZ 04-18-2014 06:01 PM

Re: Calculator Using if Statement In Java
 
Wow morash thank you.


All times are GMT +5. The time now is 05:22 AM.

Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.