guys look at my code, something is not right? I have no time to fix it. I have lots work to do. Please FIx it for me. I beg you:
Im using dev c.
#include <stdio.h>
#include <stdlib.h>
int bit(void);
int hey;
main()
{
printf("Hello,Good day! \n");
bit();
printf("\n\n Do you wish to try it again?(y/n): ");
scanf("%d",&hey);
if(hey == 'y');
{
bit();
}
int bit;
int num, fact = 1;
printf("Input a non-negative integer here: ");
scanf("%d", &num);
for(int i=1; i<=num; i++)
{
fact = fact * i;
}
printf("The factorial of %d is %d\n", num, fact);
system("pause");
}
}
else (hey == 'n');
{
return 0;
}
Both your code and your post have problems, but since you made it obvious you don't care about explanations and suggestions, I'll just give you the "fixed" code.