#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=0;j<i;j++) { printf(" "); } for(int k=n;k>i;k--) { printf("*"); } printf("\n"); } return 0; }
Subscribe in a reader
Through the contact form
0 comments:
Post a Comment