// program for verifing profit or loss
#include <stdio.h>
main()
{
    int a,b,c;
    
    printf("Enter Cost Price: ");              
    scanf("%i", &a);                        
    
    printf("Enter Selling Price: ");  
    scanf("%i", &b);  
    
    c = b - a;           // out is wrong constantly 
    printf("%i ", &c);                    
 
    if(a < b)
    {
        printf("Profit");
    }
    else if(b < a)
    {
        printf("loss");
    }
    else
    {
        printf("You are Nil");
    }
}
The output is constantly same for any intput by scanf overall program works fine.
 
    