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
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
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
Hindi,
23 hours ago
English,
23 hours ago
Social Sciences,
23 hours ago
Math,
8 months ago
Physics,
8 months ago