ShriRam Changed status to publish July 15, 2022
#include<stdio.h> #include<conio.h> void main() { int purchase, discount, net; printf("Enter purchase amount:"); scanf("%d", &purchase); printf("Enter discount:"); scanf("%d", &discount); net = purchase - (purchase * discount / 100); printf("Net Amount payable: %d", net); getch(); }
ShriRam Changed status to publish July 15, 2022