Hi im sorry I am extremely new, I just started using C at my internship and am stuck on doing the basic code below and being able to communicate with the microcontroller p33FJ256GP710. I want to simply be prompted and then give it an integer for it to evaluate just to show my bosses that I can communicate with the microcontroller via hyperterminal prior to the full programming process. heres my code:
Code:#include <stdio.h> int main() { int number; printf("you are being prompted for either a one or a zero"); scanf("%d",&number); if (number==1) { printf("You put a 1!"); } else if (number==0) { printf("You put a 0!"); } else { printf("You put something besides a 1 or 0"); } return 0; }