NALLAMUTHU GOUNDER MAHALINGAM COLLEGE
POLLACHI-642001
R.Rasigapriya
Bsc Computer Science(Ist Year)
6.Grocery bill
#include <iostream>
int main()
{
std::cout<<"\t\tRasiga
stores"<<"\n"<<std::endl;
std::cout<<"Serial number"<<"\tName of the
items"<<"\tPrice of the items "<<std::endl;
int
a,b,c,d,e,f;
a=60;
b=45;
c=30;
d=20;
e=30;
f=a+b+c+d+e;
std::cout<<"\n"<<"1"<<"\t\tRagi
flour"<<"\t\t"<<a<<"\n"<<std::endl;
std::cout<<"\n"<<"2"<<"\t\tRice
flour"<<"\t\t"<<b<<"\n"<<std::endl;
std::cout<<"\n"<<"3"<<"\t\tJam
bottle"<<"\t\t"<<c<<"\n"<<std::endl;
std::cout<<"\n"<<"4"<<"\t\tBread"<<"\t\t\t"<<d<<"\n"<<std::endl;
std::cout<<"\n"<<"5"<<"\t\tDosabatter"<<"\t\t"<<e<<"\n"<<std::endl;
std::cout<<"--------------------------------------------"<<std::endl;
std::cout<<"\t\tTotal
Price="<<"\t\t"<<c<<std::endl;
std::cout<<"--------------------------------------------"<<std::endl;
return 0;
}
OUTPUT: