Saturday, June 13, 2020

Table marked price in c

input:
5225 5
output:
5500

int main()
{
int a,b;
scanf("%d %d",&a,&b);
float c=1-(float)b/100;
printf("%.f",a/c);
}

No comments:

Post a Comment

MFIB Comma Separated Integers

Fill in the blanks with code so that the program must accept three integers separated by a space and print them separated by a comma as the ...