Practice question
3 marksWrite a Java program segment to print an inverted right-angled triangle of stars with n rows, the first row having n stars.
Nested LoopsMediumApplication based
Computer Science · Class 11 · ISC
Loops inside loops and their use in generating patterns and working through two-dimensional data.
4questions
Syllabus mapping: ISC syllabus (CISCE) (opens CISCE's website in a new tab)
4 questions
Practice question
3 marksWrite a Java program segment to print an inverted right-angled triangle of stars with n rows, the first row having n stars.
Nested LoopsMediumApplication based
Practice question
3 marksHow many times does the inner statement execute in: for (int i = 1; i <= 4; i++) for (int j = 1; j <= 3; j++) count++;
Nested LoopsMediumNumerical
Practice question
3 marksWrite a Java program segment to print the following pattern for n = 4: a right-angled triangle of stars with 1 star in the first row and 4 in the last.
Nested LoopsMediumApplication based
Practice question
3 marksWrite a Java program segment to print the multiplication tables from 1 to 5, each up to 10.
Nested LoopsMediumApplication based