#include <stdio.h>

int main()
{
    int amt,t1,t2,d1,d2;
    printf("enter the amount:%d\n",amt);
    scanf("%d",&amt);
    if (amt>=1000)
    {
        d1 = 0.1*amt;
        t1=amt-d1;
        printf("your dicounter amount is %d,t1);
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: