All Submissions


You will be given an integer N . Print the pattern for following N.
For N=5,
Pattern is
*****
****
***
**
*

Input
An integer N

Output
Print the pattern for following N

Sample Input
3

Sample Output
***
**
*

Languages: AWK,Bash,Brain,C,C++,Java,C#,JavaScript,Pascal,Perl,PHP,Python,Python3,Ruby,Text

Time Limit: 1 Second(s)
Score: 100 Point(s)
Input File Limit: 50000 Bytes

Submit

Login to post clarification.

@apoorv:
Q. #include<stdio.h> int main() { int n,i,j; scanf("%d",&n); printf("%d\n",n); for(i=0;i<n;i++) { for(j=0;j<n;j++) { if(j<(n-i)) printf("*"); else printf(" "); } printf("\n"); } return(0); }


Stonemen:
Q. Nice Problem.

Contest

Mode Judge

Passive

Online

Overall Rankings