Increment and return
Java
Easy
6 views
Problem Description
Task: increment x by 1 and return the new value.
Output Format
Return value
Constraints
Simple operation.
Official Solution
static int inc(int x){x++;return x;}
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!