Computer Science, asked by nipunagarwal102, 1 day ago

WAP to assign 75000 to variable AMT. Find out the 15% and 20% of AMT and print the values with proper statements.​

Answers

Answered by samarthkrv
0

Answer:

#include <stdio.h>

int main() {

   int amt = 75000;

   double a = (15/100)*amt;

   double b = (20/100)*amt;

   printf("15 percent of 75000 is: %lf" , a , "\n");

   printf("20 percent of 75000 is: %lf" , b , "\n");

   return 0;

}

Explanation:

Answered by ayushjha5982
1

Answer:

#include <stdio.h>

int main() {

   int amt = 75000;

   double a = (15/100)*amt;

   double b = (20/100)*amt;

   printf("15 percent of 75000 is: %lf" , a , "\n");

   printf("20 percent of 75000 is: %lf" , b , "\n");

   return 0;

}

Similar questions