0
How do I multiply with only one given number?
For one of the projects I have to do, I have to multiply a var tow, which has no specified number, by var trucks, which =2. But I can't seem to figure it out
2 Respuestas
+ 1
Scanner sc=new Scanner(System.in);
int tow=sc.nextInt();
int truck=2;
int product=truck*tow;