Purpose:
If user input b is a float number prints floor(b), round(b), ceil(b).
Else prints scanf error: (%d)\n.
The instruction (provided by our teacher) has a code like this, which I don't understand. 
Here's my code: `
#include <stdio.h>
#include <math.h>
int main(void) {
float b;
printf("Eneter a float number");
int a=0;
a=5;
a=scanf("%d", &b);
if (a=0)
{
printf("scanf error: (%d)\n",a);
}
else
{
printf("%g %g %g",floor(b), round(b), ceil(b));
}
return 0
}
-Wall(or equivalent, depending on compiler). GCC-Wallwould've picked up both thea=0and the%derrors.Enter