Hi,
The only error in my program is ,
"The program should have two int variables a and b.
Only two variables should be declared in the program."
The 'Sum' and 'Product' should also be declared in order to get an output. So if I declare them as well I get this error.
So please help with where should I make changes.
package com.codegym.task.task02.task0207;
/*
Part of a calculator
*/
public class Solution {
public static void main(String[] args) {
int a=5;
int b=7;
int Sum=(a+b);
int Product=(a*b);
System.out.println(Sum);
System.out.println(Product);
}
}