Right guys and gals, i have been trying to create an registration program and im stuck at the first hurdle, i keep getting an error that i dont know how to solve. There seems to be parse error before the 'else if' and i can't figure out whats wrong.
It's driving me nuts!


Code:
#include <stdio.h>
#include <math.h>

int user;

int main (void)


{

	int log;
	int reg;
	int ans;
	
	printf ("Press [L]ogin or [R]egistration");
	scanf  ("%s", ans);
	
	{	 
		if (ans=='l') or (ans=='L');
 	   		Login();
	
		else if (ans=='r') or (ans=='R')
			Registration();
	
		else 
			printf("Invalid!\n");
	}
		
}