I was trying to find information about fmtstr with out much luck:/
I tried including ***printf("%*s",i,"")**** in my code and it is still not working well:/
Code:
#include <stdio.h>
int main () {
int i, n, height, width;
char z;
printf("Please enter the height of the parallelogram.\n");
scanf("%d", &height);
printf("Please enter the width of the parallelogram.\n");
scanf("%d", &width);
printf("\n\n\n");
for(i=0; i < height; i++){
for(n=1; n < width; n++)
printf("*");
printf("*");
for(z=0; z < width; z++)
printf("%*s",z,"");
printf("\n");
}
system("PAUSE");
return 0;
}