#include<stdio.h> int main() { int n; printf("Enter your number : "); scanf("%d",&n); printf("\n"); for(int i=0;i<n;i++) { for(int j=n;j>i;j--) { printf(" "); } for(int k=0;k<=i;k++) { printf("*"); } printf("\n"); } return 0; }
Subscribe in a reader
Through the contact form
0 comments:
Post a Comment