Computer Science, asked by Ldass21, 11 hours ago

Q 4. Write a C program to print the following:
1
2.
3
1 2 3 4 5 6 7
5
6
7

Answers

Answered by aartitomarji
0

Answer:

12 is correct answer 34 is correct or not

Answered by AnirudhDaberao
0

Answer:

public class KboatPattern

{

   public void displayPattern() {

       int a = 1;

       for (int i = 1; i <= 5; i++) {

           for (int j = 1; j <= i; j++) {

               System.out.print(a++ + "\t");

           }

           System.out.println();

       }

   }

}

Explanation:

Similar questions
Accountancy, 8 months ago