Saturday, October 24, 2020

If the purchase amount is more than 2000 Rs, the discount is of 20%

#include <stdio.h>

int main() {

    float pa;

    printf("Enter Purchase Amount:");

    scanf("%f",&pa);

    if(pa>=2000)

    {

        pa = pa - (pa*0.2);

    }

    printf("Net Payable=%.2f",pa);

}

No comments:

Post a Comment

મારી જિંદગીના સૌથી મોટા પ્રેરણારૂપ: મમ્મીને જન્મદિવસની ખાસ શુભેચ્છાઓ 🎂✨

  https://www.youtube.com/watch?v=m4zfFxLUI7c હાય નમસ્તે જય શ્રી કૃષ્ણ સો ઓકે આ પહેલો મારો વિડીયો હશે જે હું ગુજરાતીમાં રેકોર્ડ કરવાની હતી ર...