How To Sum Using Java - Auxiliary Tech


Friday, October 11, 2019

How To Sum Using Java

I have many ways to sum using java...
i have to write it down here as a blogger, for you to understand ...
 here are the code below..
Using Java...


public class Main {

    public static void main(String[] args) {
int income1 = 25000;
int outcome1 =15000, outcome2=12000, outcome3=10000, outcome4=9000, outcome5=14000, outcome6= 6000;
int totalincome=25000*6;
int totaloutcome= outcome1+outcome2+outcome3+outcome4+outcome5+outcome6;
int finalresult= totalincome-totaloutcome;
System.out.println("this is your final answer  " + finalresult);


No comments:

Post a Comment

Contact Form


Email *

Message *