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

2019 wasn’t just a year—it was a whole era.From lectures to late nights, chaos to clarity… every frame built a story I’m still living ✨

Video Link The video contains snaps from 2019 throwback ones when i was doing my masters studies from university of surrey, guildford, londo...