The catch is in all the places use if or while/for to make a statement where ever u need semicolon. Something like as follows -
#include <stdio.h>
void main(int n, int f)
{
if (scanf("%d", &n))
{
if (f = 1)
{
while (n != 1)
{
if (f = n * f)
if (n--) {}
}
if(printf("Factorial is %d\n", f)) {}
}
}
}