J JakeMosby Forum Veteran Elite Joined Apr 22, 2019 Posts 2,588 Solutions 7 Reaction 1,254 Points 978 Dec 22, 2021 #1 lods pano ba to nag eeror ng "cannot find the symbol import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num; System.out.print ("Choose from 5 triangles :1 - Left Triangle. 2 - Right Triangle. 3 - Reversed Left Triangle. 4 - Reversed Right Triangle. 5 - Full Triangle "); System.out.print ("Choose Number: "); num= scan.nextInt(); if(num == 1) {System.out.print ("Enter Number: "); int n = sc.nextInt(); //square// for (int i = 1; i <= n; i++) { for (int j = 1; j<= n; j++){ System.out.print ("* "); } System.out.println(); } } else if(num == 2) {System.out.print ("Enter Number: "); int n = sc.nextInt(); //increasing triangle// for (int i = 1 ; i <= n; i++) { for (int j= 1 ;j <= i; j++){ System.out.print("* "); } System.out.println(); } } else {System.out.print ("try again");} } }
lods pano ba to nag eeror ng "cannot find the symbol import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num; System.out.print ("Choose from 5 triangles :1 - Left Triangle. 2 - Right Triangle. 3 - Reversed Left Triangle. 4 - Reversed Right Triangle. 5 - Full Triangle "); System.out.print ("Choose Number: "); num= scan.nextInt(); if(num == 1) {System.out.print ("Enter Number: "); int n = sc.nextInt(); //square// for (int i = 1; i <= n; i++) { for (int j = 1; j<= n; j++){ System.out.print ("* "); } System.out.println(); } } else if(num == 2) {System.out.print ("Enter Number: "); int n = sc.nextInt(); //increasing triangle// for (int i = 1 ; i <= n; i++) { for (int j= 1 ;j <= i; j++){ System.out.print("* "); } System.out.println(); } } else {System.out.print ("try again");} } }
J JakeMosby Forum Veteran Elite Dec 22, 2021 TS TS #3 jesthony876 said: Up wait mo mga expert ts Click to expand... oks na pala lods dapat pala sc hindi scan hahahhaa
jesthony876 said: Up wait mo mga expert ts Click to expand... oks na pala lods dapat pala sc hindi scan hahahhaa