Premium Only Content
This video is only available to Rumble Premium subscribers. Subscribe to
enjoy exclusive content and ad-free viewing.
Learn to Program with Java version 11 - Part 06 : Write Java math #getajobinit
3 years ago
28
Learn to Program with Java version 11 - Part 06 : Write Java math
https://github.com/garymcneelyit/javacourse
class Math
{ public static void main ( String[] args )
{ // defining number for program
int num = 50 ;
int factor = 2 ;
int sum = 0 ;
// calculations
sum = num + factor ;
System.out.println ( "add these together " + sum );
sum = num - factor ;
System.out.println ( "minus these values " + sum );
sum = num * factor ;
System.out.println ( "times these together" + sum );
sum = num / factor ;
System.out.println ( "divide these values" + sum );
}
}
Loading comments...
-
4:01
getajobintech
1 year agoAnswer Question from a Subscriber: Hi CommVault Whisperer. Great! you are running similar lab.
24 -
9:56
getajobintech
3 years agoLearn to Program with Java version 11 - Part 13 : Write Java bits #getajobinit
47 -
2:12
getajobintech
3 years agoLearn to Program with Java version 11 - Part 12 : Write Java precedence #getajobinit
44 -
4:00
getajobintech
3 years agoLearn to Program with Java version 11 - Part 09 : Write Java logic #getajobinit
92 -
5:23
getajobintech
3 years agoLearn to Program with Java version 11 - Part 08 : Write Java comparisons #getajobinit
34 -
4:56
getajobintech
3 years agoLearn to Program with Java version 11 - Part 07 : Write Java assignments #getajobinit
30 -
7:08
getajobintech
3 years agoLearn to Program with Java version 11 - Part 10 : Write Java literals #getajobinit
76 -
7:06
getajobintech
3 years agoLearn to Program with Java version 11 - Part 11 : Write Java conditions #getajobinit
38 -
6:23
getajobintech
3 years agoLearn to Program with Java version 11 - Part 05 : Write Java constants #getajobinit
40 -
6:13
getajobintech
3 years agoLearn to Program with Java version 11 - Part 04 : Write Java data types #getajobinit
61