Hello all!
Back again this week with a brand new error (well for me at least anyways)
The program below is meant to draw a rectangle using asterics, but we've been made to do it a pretty specific way. At the moment I'm getting a segmentation error but I have no idea why. Below is the code!
Code:#include <stdio.h> #include <math.h> int main() { int width = 0; int height = 0; printf("Please enter a width and height seperated by a comma\n"); scanf("%d,%d, &width, &height"); while (width>0) { printf("*"); width--; } }