Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SuperMarket_BillingSystem #3

Open
Pavan1471 opened this issue May 17, 2022 · 0 comments
Open

SuperMarket_BillingSystem #3

Pavan1471 opened this issue May 17, 2022 · 0 comments

Comments

@Pavan1471
Copy link

#include<stdio.h>
int main() {
int item,choclate,choclates,biscuit,biscuits,cooldrink,cooldrinks,total;
time_t t;
t = time(NULL);
struct tm tm;
tm = *localtime(&t);

getch();

char name[20];
choclate=10;
printf("enter no.of choclates:");
scanf("%d",&item);
choclates=choclateitem;
biscuit=5;
printf("enter no.of biscuit:");
scanf("%d",&item);
biscuits=biscuit
item;
cooldrink=75;
printf("enter no.of cooldrinks:");
scanf("%d",&item);
cooldrinks=cooldrink*item;

printf("enter name of customer:\n");
scanf("%s",name);
total=choclates+biscuits+cooldrinks;

printf("============================================================");
printf("\n M.P - S U P E R M A R K E T \n");
puts("\n============================================================");
printf("Name of customer (Mr/Ms):%s\n",name);

printf("Item Qty Price Amount\n");
printf("choclate %d %d %d.Rs\n",item,choclate,choclates);
printf("biscuit %d %d %d.Rs\n",item,biscuit,biscuits);
printf("cooldrink %d %d %d.Rs\n",item,cooldrink,cooldrinks);

printf("Total payable amount=%d.Rs\n",total);

printf("****\n");
printf(" THANKS FOR VISITING ");

printf("Current Time: %d:%d:%d", tm.tm_hour, tm.tm_min, tm.tm_sec);

return 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant