Write a program to print following pattern; 1 1 2 1 2 3 1 2 3 4

#include <stdio.h>
int main() {
   int i, j, rows;
   printf("Enter the number of rows: ");
   scanf("%d", &rows);
   for (i = 1; i <= rows; ++i) {
      for (j = 1; j <= i; ++j) {
         printf("%d ", j);
      }
      printf("\n");
   }
   return 0;
}

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
1 2 3 2 3 4 5 pattern print print the pattern 1 3*2 4*5*6 Write a program to print following pattern: 2 4 6 8 10 12 14 16 18 20 Write a program to print following pattern 2 4 6 8 10 12 14 16 18 20 program to print pattern 1 2 3 5 7 11 13 write a program to print the following pattern: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Write a program to print the following pattern. Sample Input: 5 Sample Output: 1 2*2 3*3*3 4*4*4*4 5*5*5*5*5 5*5*5*5*5 4*4*4*4 3*3*3 2*2 1 Write a program to print the following pattern. Sample Input: 5 Sample Output: 1 3*2 4*5*6 10*9*8*7 11*12*13*14*15 print pattern 1 2*2 3*3*3 Pattern II Write a program to print the following pattern. Sample Input: 5 Sample Output: 1 3*2 4*5*6 10*9*8*7 11*12*13*14*15 how to print 1 2 3 2 3 4 3 4 5 pattern write a program to print following pattern 1 1 1 2 2 3 Print the following pattern 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Write a program to print the following pattern. Sample Input: 5 Sample Output: 1 2*2 3*3*3 4*4*4*4 5*5*5*5*5 5*5*5*5*5 4*4*4*4 3*3*3 2*2 1 Write a program to print the following pattern. Sample Input: 5 Sample Output: 1 3*2 4*5*6 10*9*8*7 11*12*13*14*15 Write a program to print the following pattern.. 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 1*2 1*2**31*2**3***4 print the pattern' write a program to print the following pattern 1 3 8 5 Print the following Pattern and get the OutPut? N=5 Output 1 3*2 4*5*6 10*9*8*7 11*12*13*14*15 in python pattern printing 1 a b 1 2 3 a b c d print pattern 1 *2 1*3 Write a C program to print the pattern 3 2 3 1 2 3 0 1 2 3 1 2 3 2 3 3 c program to print the following pattern 1 1 1 1 2 2 2 2 3 3 3 3 Write the logic to print the following pattern 1 1 1 1 2 2 2 2 3 3 3 3 Write the logic to print the following pattern for n. Sample : n=3 1 1 1 2 2 3 Write the logic to print the following pattern for n. Sample : n=3 1 1 1 1 2 2 2 2 3 3 3 3 To print the pattern like for n=3 the program should print 1 1 1 2 3 2 2 2 3 3 3 4 Write a program in C to print the following pattern with the help of a for loop. 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Write a program in C to print the following pattern with the help of a for loop. 5 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 print the following pattern: 1 1 3 1 3 5 1 3 5 7 Write a program to print the following pattern. 1*2*3*4*17*18*19*20 5*6*7*14*15*16 8*9*12*13 10*11 Write a program to print the following pattern. 1*2*3*4*17*18*19*20 5*6*7*14*15*16 8*9*12*13 10*11 Write a simple program to print the following pattern. Use &ldquo;for loops&rdquo; to generate the pattern using C. 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 Write a simple program to print the following pattern. Use &ldquo;for loops&rdquo; to generate the pattern. 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 1 1 2 1 3 1 4 1 2 3 4 5, print pattern Write a program to print the following patterns using loops. a) 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 4 5 4 3 2 1 print the following pattern
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source