Hello!
Here is the almost complete code for the assignment, all that is missing is the code to check whether the input is incorrect. If you assign me the project I'll send you the complete version right away.
#include <stdio.h>
void main(){
while(1){
int input1,input2,result;
printf("Please enter a whole number from 1 to 100 \n");
scanf("%d",&input1);
printf("Please enter another whole number from 1 to 100 \n");
scanf("%d",&input2);
result = input1 + input2;
printf("The result is %d",result);
}
}
Let me know if you need help compiling and running the program. Or if you just want the executable to test it.
Regards, Tomas!