Sei sulla pagina 1di 1

#include <stdio.h> printf("Electric bill for, %s %s.

, FN,
LN");
int main()
printf("\n");
{
printf("Adress: %s", SAD);
char FN[20], LN[20], SAD[50],
TOW[10], PRO[10], ZIP[5]; printf("\n");

double PHO, ELE, STA, CIT, TOT, EC, printf("Phone: %s", PHO);
DAY, KWH;
printf("\n");
printf("Input first name: ");
printf("Amount of electric bill for days
scanf("%s", &FN); at is : %lf", ELE);

printf("Input last name: "); printf("\n");

scanf("%s", &LN); printf("State Tax : %lf", STA);

printf("\n"); printf("\n");

printf("Input address: "); printf("City Tax(city tax rate>) : %lf",


CIT);
scanf("%s", &SAD);
printf("\n");
printf("\n");

printf("Input phone number ");


printf("--------------------------------------------------------
scanf("%lf", &PHO); ------- ");

printf("\n"); printf("\n");

EC=6.72; printf("Total : %lf", TOT);

KWH=100; return0;

DAY=31; }

ELE=(EC * KWH) * DAY;

STA=(8 / ELE) * 100;

CIT=(3.5 / ELE) * 100;