I have a simple c program
#include <stdio.h>
int add(int, int);
int add (int a, int b) {
return a+b;
}
int main(void) {
int a, b, c;
printf("Enter the 1st number ");
scanf("%d",&a);
printf("Enter the 2nd number ");
scanf("%d",&b);
c = add(a, b);
printf("The value is %d ", c);
return (0);
}
I am compiling the program with cc main.c
and when I am running the program with ./a.out
I am not getting any output in the console.