Variable base
is undeclared.
Variable idade
is undeclared.
It should be printf("%d",base)
if your are using base.
#include <stdio.h>
int main(){
int age;
int aget;
int total;
printf("Input your age: ");
scanf("%i", &age);
printf("Input your age two: ");
scanf("%i", &aget);
total = age + aget;
printf("%d",total);
return 0;
}
1
solved How to solve segmentation error in C program [closed]