Hyper Market Discount


C CODE:

#include<stdio.h>
#include <stdlib.h>

int main()
{
int b,r,k;
scanf("%d",&b);
if(b>2000)
{
r=b*0.1;
k=b-r;
printf("%d",k);
}
else
printf("%d",b);
}

Comments

Popular posts from this blog

Reverse String Till Underscore

Count of common characters in two strings

RECTANGULAR SUM