Try something like.....
Code:
#include <stdio.h>
#include <conio.h>
int main()
{
int x,y;
printf("\n\tInput Number (Greater than 5, Not Even): ");
scanf("%i",&x);
if ((x<5) || (x%2=0))
{
printf("\n\tInvalid Entry!");
return 0; // Quits the Program //
}
}
that's all i'm giving you...it's pretty muh what you had....structured bit better......all you need to do now...is to add a loop after that whole if statement....firs you want the loop to be executed the same amount of times as x, and the only thing in the loop should be a printf("*"); so the loop will just print an x amount of astrieks..then after that....every other line will have a (x-2) amount of stars........you should be able to figure it out now ...try it.