Skip to main content

Posts

Featured

Star pattern 3

Click on read more #include<stdio.h> #include<conio.h> void main() { int i,j,r; clrscr(); printf("Enter the no. Of rows:"); scanf("%d",&r); for(i=1;i<=r;i++){ for(j=1;j<=r;j++){ if(j<=r-i) printf(" "); else printf("*"); } printf("\n"); } getch(); } Output: Enter the no. Of rows:5     *    **   ***  **** *****    

Latest Posts

Series 2

Series-1

Star pattern 2

star pattern 1

Print number in reverse order using 'c'

Print 1 to till you want using for loop in 'c'

Calculator using 'c'

Find the greatest between four numbers using 'c'

Find the greatest between two numbers using 'c'.