C scripting in Unix (newbie question)
Posted on 2008-06-21
1.) Here is my program, the error message follows. Supposedly the % is for modulus and is supposed to give me a remainder?
2.) If I did a scanf, and entered any interger or float value, how would I make the program display the last character of the interger. ex: enter a number: 12 "the last character is 2" . How would I do this with simple code (as simply as possible)?
printf("Enter any integer");
here is the error message when I try to compile it: "program2.c:9: error: invalid operands to binary" Do I need to include another .h file?