Developer community
0 votes
51 views
asked by Expert (15k points) 15 23 31 | 51 views

1 Answer

0 votes
public class MainClass {
  public static void main(String[] args) {
    int numA = 5;
    int numB = 10;
    int numC = 0;
 
    numC = ++numA + numB;
    
    System.out.println(numA);
    System.out.println(numC);
  }
}
6
16
 
 
answered by Geek (15.3k points) 17 40 60

Related questions

0 votes
2 answers
0 votes
1 answer
asked by sunny Expert (11.4k points) 14 22 29 | 11 views
0 votes
1 answer
asked by taye Sr Member (5k points) 7 9 12 | 58 views
0 votes
1 answer
asked by rajesh Guru (39.1k points) 10 22 34 | 1.4k views
0 votes
1 answer
asked by sunny Expert (11.4k points) 14 22 29 | 11 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users