Answer to Question #247120 in C for Madjoker

Question #247120
Your group visit a shop to get your assignment typed and printed. Write an algorithm to calculate bill of a job work based on following rates.
-->Rate of typing is Rs. 3/- per page
-->Rate of Printing is Rs. 5/- per page
User should enter the number of pages in assignment and no. of print out copies your group want.
1
Expert's answer
2021-10-05T18:15:39-0400
#include<stdio.h>
int main(){
	printf("Enter the number of pages\n");
	int pages;
	scanf("%d", &pages);
	printf("Enter the no. of print out copies\n");
	int print_pages;
	scanf("%d", &print_pages);
	float total = pages * 3 + print_pages * 5;
	printf("The bill is: %f", total);
	
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS