Coding Question 16
Write a program to print the following (Number of lines should be given as input by the users): ** * ** * * * ** * * * * * * #include<stdio.h> int main() { int i,j,h,space,x; printf("n Enter the height: "); scanf("%d",&h); for(i=1;i<=h;i++) { printf("n"); for(space=1;space<=(h-i);space++) printf(" "); for(j=1;j<=((2*i)-1);j++) { printf("* "); } } […]