.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Melody Anderson
Eminent IT

Home >> Code Snippets >> Javascript >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Program for arithmetic operation

Posted By:laptop charles       Posted Date: June 29, 2010    Points: 10    Category: Javascript    URL: http://www.dotnetspark.com  

It contain just four operation.

It just simple program for arithmetic operation.
//Arithmatic operator:-
class arithmatic
public static void main(String a[])
int one=2, two=4;
int sum,diff,multi,divide,rem;
sum =one+two;
diff =one-two;
multi = one*two;
divide = one/two;
rem = one%two;
System.out.println("add" +sum);
System.out.println("multi" +multi);
System.out.println("divide" +divide);
System.out.println("rem" +rem);


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend