1: // Write a to print following pattern
2: //*****
3: //****
4: //***
5: //**
6: //*
7: #include<stdio.h>
8: #include<conio.h>
9: void main()
10: {
11: int row,i,j;
12: clrscr();
13: printf("Enter the number of rows you want: \n");
14: scanf("%d",&row);
15: for(i=row;i>=1;i--)
16: {
17: for(j=1;j<=i;j++)
18: {
19: printf("* ");
20: }
21: printf("\n");
22: }
23: getch();
24: }
getsprogramming Tutorials , C Programming, CPP Programming and JAVA Programming , Python Programming , Javascript Programming Welcome to getsprogramming Blog Here You Find Different Programs in Easier way to Explain and gain Knowledge and Try Your Self..Thanks
Saturday, 28 November 2015
Write a C Program to print pattern11
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment