0
Help cant fix my program
import java.util.Scanner; public class Errors { public static void main(String[] args) { int a,b,c; boolean found; Scanner s = new Scanner(System.in); System.out.print("Enter the first Integer: "); a = s.nextInt(); System.out.println(); if (a> a*b && 10 < b) found = 2 * a> b; else { found = 2 * a < b; if (found) a = 3; c = 15; if b { b = 0; a = 1; } } } }
5 Réponses
+ 6
I cant understand what you want to do in this code but error is solved
Happy coding
https://code.sololearn.com/c2St1mG7QX8S/?ref=app
0
import java.util.Scanner;
public class Errors
{
public static void main(String[] args)
{
int a,b,c;
boolean found;
Scanner s = new Scanner(System.in);
System.out.print("Enter the first Integer: ");
a = s.nextInt();
System.out.println();
if (a> a*b && 10 < b)
found = 2 * a> b;
else
{
found = 2 * a < b;
if (found)
a = 3;
c = 15;
if (b)
{
b = 0;
a = 1;
}
}
}
}
0
still doesn't work
0
thanks man..😊😁
0
thanks a lot