#include <stdio.h>
char user_input[128];
int term1;
int term2;
int term4;
int main(int argc, char *argv[])
{
printf("please enter two values here: ");
fgets(user_input, sizeof(user_input), stdin);
sscanf(user_input, "%d %d", &term1, &term2);
if (argc < 2)
printf("you need to input at least two characters here\n");
else
term4 = term1 + term2;
printf("%d", term4);
return (0);
} |