ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1000. A+B Problem

worng output!!! whyyy??
Posted by nikita agrawal 11 Aug 2016 16:10
import java.util.Scanner;
public class Add
{
public static void main(String args[])
{
int a, b, c;
Scanner input = new Scanner(System.in);
System.out.println("enter two values a and b =");
a = input.nextInt();
b = input.nextInt();
c = a+b;
System.out.println("addition of a and b is=" + c);
}
}
Re: worng output!!! whyyy??
Posted by Oleg Baskakov 11 Aug 2016 16:56