Computer Science, asked by badhmapriya2211, 1 year ago

Program for inverted L pattern

Answers

Answered by zerotohero
1

Program for inverted L pattern is as follow:

#include<stdio.h>

int main()

{

int n,a[100][100],i,j;

scanf("%d",&n);

for(i=1;i<=n;i+=2)

{

printf("%d ",i);

}

printf("\n");

for(j=2;j<n;j+=2)

{

printf("%d ",j);

printf("\n");

}

}

Answered by sadiaanam
0

Answer:

The following is a program for the inverted L pattern:

#include<stdio.h>

the main ()

{

i,j; int n,a[100][100];

scanf("%d",&n);

for(i=1;i<=n;i+=2

)

{

printf ('%d', I

}

printf("\n");

for(j=2;j<n;j+=2)

{

printf ('%d', 'j');

printf("\n");

}

}

Explanation:

For more information, refer to the below link.

https://brainly.in/question/3664221

Project code - #SPJ2

Similar questions