Thursday, October 29, 2020

Purchasing & Selling Amount (C Program)

 #include <stdio.h>

int main() {

    float p,s;

    printf("Enter purchase & selling amount:");

    scanf("%f %f",&p,&s);

    if(p<s)

    {

        printf("Profit of %.2f Rs",s-p);

    }

    else

    {

        printf("Loss of %.2f Rs",p-s);

    }

}

No comments:

Post a Comment

SAP Tcodes

zme27 - Automatic STO creation mmbe - Stock Overview, Material, Batch me51n - Create Purchase Requisition me21n - Create Purchase Order me59...