I'll give you hint on the first one. I'll show you the parts that are wrong but I won't tell you why.
#include <math.h>
#include <stdio.h>
#include <string.h>
int main(void)
{
char *s[80]; <--------------------------
int i;
printf("Enter a number: ");
fgets(s, 80, stdin); <--------------------------
i = atoi(s); <--------------------------
printf("You said %d.\n", i);
return 0;
}
Look at the documentation for fgets. I'll help you with that too :
fgets - C++ Reference[
^]. From there, it's up to you to figure out what the error is and describe it. Another hint - the last two aren't the actual error. They are effectively errors because of the first one.
This is what you need to do with the rest of them too. They involve similar errors. Except for the last one - it's a bit more subtle.