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++){
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment