#include <stdio.h> //adding program
int main()
{
    int iOperand1 = 0;
    int iOperand2 = 0;
    printf("\n\tAdder Program, by Keith Davenport\n");
    printf("\nEnter first operand: ");
    scanf_s("%d", &iOperand1);
    printf("Enter second operand:");
    scanf_s("%d", &iOperand2);
    printf("The result is %d\n", iOperand1 + iOperand2);
    return 0;
}
int revenueProgram()  //Revenue program
{
    float fRevenue, fCost;      
    printf("\nEnter total revenue:");
    scanf_s("%f", &fRevenue);
    printf("\nEnter total cost:");
    scanf_s("%f", &fCost);
    printf("\nYour profit os $%.2f\n", fRevenue - fCost);
    return 0;
}
That is my code. I ran it, and the program only ran the first program. It did not run the second program. Why does it happen? and How to fix it? Please help. I am still new to C programming.
 
     
    