Math Operators

Learn how to use Math Operators in java

public class Demo {
public static void main(String args[]){

int boys, girls, people; // set variable
boys = 10; // assign value to variable
girls = 5; // assign value to variable

people = boys + girls; // sum store in people variable

System.out.println(people); // print sum




Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.