When did you realize you talk like a fag and your shit's all retarded?
someone suggested picking a real language, and converting my python scripts into it, so I pick one of my simplest scripts http://pastebin.com/Xy9HtyFd
and I cant even rip the scale off the string, because the user could type a string of any length
#include <stdio.h>
#include <string.h>
int main()
{
char input[7];
int length;
int temp;
char scale;
char last;
printf("Enter Temperature. \n");
fgets(input, 7, stdin);
length = strlen(input);
printf("length = %d \n", length);
getchar();
printf("you entered %s \n", input);
getchar();
last = input[length-1];
scale = last;
printf("The scale is %c \n", scale);
printf("the temperature is %d \n", temp);
return 0;
}
so it works if user types 33332c, but not if user types 32c or 3333332c