First, I must say that I know very few things about programming a microcontroller in C, but I would like to learn.
The following program is not written by me, but I have to write a similiar one...
Type: Posts; User: Iahim
First, I must say that I know very few things about programming a microcontroller in C, but I would like to learn.
The following program is not written by me, but I have to write a similiar one...
lit = getchar();
If I use this line, the program ends when it gets to it
Anyway, I've search the help for some hints( I hate doing the Help search, I'm surprised that it helped me this time),...
I've put %s because %c doesn't work... If I do make the change, it exits the program after it prints on the screen "b) Multiply"(at least, this happens on my machine).
#include <stdio.h>
main()
{
int a,b,c;
char lit;
printf("A number: ");
scanf("%d", &a);
printf("Another number: ");
scanf("%d",...