-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathPattern2.c
33 lines (31 loc) · 831 Bytes
/
Pattern2.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/******************************************************
* File : Pattern1.c
* Description : C Program to print the pattern
* * * * * *
* * * * *
* * * *
* * *
* *
* Author : Sarju S
* Version : 1.0
* Date : 18/06/2021
* ***************************************************/
#include<stdio.h>
int main(){
int limit,i,j;
printf("\nEnter the limit:");
scanf("%d",&limit);
/*for(i=limit;i>=1;i--){
for(j=1;j<=i;j++){
printf("*\t");
}//end j
printf("\n");
}//end i*/
for(i=1;i<=limit;i++){
for(j=limit;j>=i;j--){
printf("*\t");
}//end j
printf("\n");
}//end i
return 0;
}