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; } } } }

19th Nov 2020, 2:32 AM
Diether Absalon
Diether Absalon - avatar
5 Respuestas
+ 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
19th Nov 2020, 3:16 AM
Piyush
Piyush - avatar
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; } } } }
19th Nov 2020, 2:34 AM
Diether Absalon
Diether Absalon - avatar
0
still doesn't work
19th Nov 2020, 2:34 AM
Diether Absalon
Diether Absalon - avatar
0
thanks man..😊😁
19th Nov 2020, 2:41 AM
Diether Absalon
Diether Absalon - avatar
0
thanks a lot
19th Nov 2020, 3:46 AM
Diether Absalon
Diether Absalon - avatar