Computer Science, asked by angelmishra1, 5 months ago

Pls answer pls
Write a program to calculate the phone bill for a customer. For that, enter the customer id, total number of local calls and total number of STD calls. Rates of local and STD calls are given below. Calculate the total amount to be paid by the customer by adding the amount of local calls and STD calls and print it.
Rate for local calls = 1Rs./call
Rate for STD calls = 1.5 Rs./call

Amount of local calls = total number of local calls * rate
Amount of STD calls = total number of STD calls *rate
Total amount = amount of local calls + amount of STD calls

Answers

Answered by reshmaansari29070
0

Answer:

sorry ! I don't know the answer

Answered by arnavpandit40
2

Answer:

Here

Explanation:

#include <stdio.h>

#include <stdlib.h>

int main()

{

   int ID,local,STD,tot_amt,tot_loc,tot_STD;

   printf("Enter you ID: ");

   scanf("%d", &ID);

   printf("Enter total no. of local calls: ");

   scanf("%d", &local);

   printf("Enter total no. of STD calls: ");

   scanf("%d", &STD);

   tot_loc = local*1;

   printf("Your total amount of local calls is %d\n",tot_loc);

   tot_STD = STD*1.5;

   printf("Your total amount of STD calls is %d\n",tot_STD);

   tot_amt = tot_loc + tot_STD;

   printf("Your total amount is %d\n",tot_amt);

   return 0;

}

Similar questions
Math, 11 months ago