I got my code to work with the following if statement:
if((i == 0 || i == x - 1) || ((i > 0 && i < x - 1) && (j == 0 || j == y - 1)))
{
printf("x");
}...
Type: Posts; User: IDC Tyler
I got my code to work with the following if statement:
if((i == 0 || i == x - 1) || ((i > 0 && i < x - 1) && (j == 0 || j == y - 1)))
{
printf("x");
}...
I know this question probably gets asked often enough, but I was just hoping someone could tell me what is wrong with my code.. or really just hint at it. I am creating a function that takes in a...
What would you recommend to read and discard the bad input value?
When I insert a char, it just kind of spits out the prompt over and over very quickly. The only reason I am testing for a char is to make sure I can prevent my code from breaking.
Oh, right! That did help, but I am still having a problem when I insert a character.
So I am trying to brush back up on some of my programming skills and I can't seem to get this program to do exactly what I was wanting. I want to output a fibonacci sequence of a length specified by...