Java for Testers Interview Questions And Answers – Part 2
Java for Testers – Interview Questions and Answers Part-2 1)  Write a Java program to print Floyd’s triangle? public class FloydTriangle { public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.println("Enter the number of rows"); int rows = sc.nextInt(); printFloydTriangle(rows); } public static void printFloydTriangle(int n){ int number = 1; for(int i=0;i<n;i++){ for(int… (0 comment)

For FREE Testing Tutorials & Videos

X
Open chat
Contact Us on Whatsapp