1: // *
2: // **
3: // ***
4: // ****
5: //*****
6: #include<stdio.h>
7: #include<conio.h>
8: void main()
9: {
10: int i, j, k, row;
11: clrscr();
12: printf("Enter the number of rows you want:\n");
13: scanf("%d",&row);
14: for(i=row;i>=1;i--)
15: {
16: for(j=1;j<i;j++)
17: {
18: printf(" ");
19: }
20: for(k=row;k>=i;k--)
21: {
22: printf("*");
23: }
24: printf("\n");
25: }
26: getch();
27: }
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
Showing posts with label cprogram. Show all posts
Showing posts with label cprogram. Show all posts
Friday, 9 October 2015
Write a C Program To Print Pattern
Monday, 6 July 2015
Write C Program Print Integer
Write C Program Print Integer
1: int main()
2: {
3: int a;
4:
5: printf("Enter an integer");
6: scanf("%d", &a);
7: printf("Integer that you have entered is %d", a);
8:
9: return 0;
10: }
11:
Write C Program to Print Hello World Example
Write C Program to Print Hello World Example
1: //C hello world example
2: #include <stdio.h>
3: int main()
4: {
5: printf("Hello world\n");
6: return 0;
7: }
Subscribe to:
Posts (Atom)