Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int code, time, sms, pagio=12;
- float fpa, total_cost, call_cost, sms_cost, cost;
- printf("Plhktrologhste ton kothiko sas, to xrono omilias kai ton arithmo mhnumatwn: ");
- scanf("%d%d%d",&code,&time,&sms);
- call_cost = 0.02 * time;
- sms_cost = 0.14 * sms;
- cost = call_cost + sms_cost + pagio;
- fpa = cost * 0.23;
- total_cost = cost + fpa;
- printf("Tmob account\n");
- printf("------------------------------------------------------------------------------\n");
- printf("Customer code\t\ttime\tSMS\tFPA\t|\tTOTAL\n");
- printf("%d\t\t\t%d\t%d\t%.2f\t|\t%.2f\n",code,time,sms,fpa,total_cost);
- printf("________________________________________________________________________________\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement