Write a program (in C language not C++) which draws an “x” of user specified height. If the user typed 7,
the following series of ‘*’ characters would be drawn (without line
numbers):
1 2 3 4 5 6 7
1 * *
2 * *
3 * *
4 *
5 * *
6 * *
7 * *
1
Expert's answer
2012-06-15T09:41:39-0400
#include <stdlib.h> #include <conio.h> int main() { char arrayofstar[100][100]; int height=0; printf("Enter height: "); scanf("%d",&height); int k=height-1; int count=0; for(int i=0;i<height;i++){
Comments
Leave a comment