I am new to this C thing and am triny very hard to understand but am having a little problem getting thing to work. I have a project that I have been working on and cannot seem to get it to work.
This is what I have so far and for the life of me can not seem to get it to work. I know I am missing something. When it is compiled it is supposed to ask the question How long would it be on a side? and the user enters a number and then after the number is entered a square would be formed usings asteriks. So, can anyone help me??? Please...:lol:
#include <stdio.h>
main()
{
int length;
int width;
int count = 0;
printf("How long would it be on a side?\n");
scanf("%d*%d",&length,&width);
printf("\n");
while (count <= length*width){
printf("*");
count++;
}
}
"square.c" 27 lines, 313 characters