This isn't working !

Code:
#include <stdio.h>

int main()
{
	char input[30];
	int base;

    printf("Please enter positive number: ");
    fgets(input, 30, stdin);

	printf("Please ener the base (1->binary, 2->octal, 3->decimal, 4->hexadecimal): ");
	fgets(base,1,stdin);

    //Check(input,base);
}

/*
int Check(char input[], int base)
{
	switch (base)
	{
	case 1://binary
		//statment
	case 2://octal
		//statment
	case 3://decimal
		//statment
	case 4://hexadecimal
		//statment
	}
}
*/

Last edited by shabbir; 17Jul2007 at 09:17.. Reason: Code block