A new grossory shop has to be opened. The owner asks the accontant to take a print of price list of the items to be sold in the store. The bill should have the details of the item and its cost. The items that the owner decides to sell initially are A4sheets, pen, pencil and eraser. The accountant is an experienced person and he very well knows that more number of items will be added to the list as the business picks. The accontant is well versed in programming and he decides to write a C program to generate the price list.
Sample Input and output :
Enter the cost of A4sheet:
40
Enter the cost of Pen:
20
Enter the cost of Pencil:
10
Enter the cost of Eraser:
5
Items Details
A4sheet:40
Pen:20
Pencil:10
Eraser:5
int main ()
{
int a4;
int pen;
int pencil;
int eraser;
printf("Enter the cost of A4sheet:\n");
scanf("%d", &a4);
printf("Enter the cost of Pen:\n");
scanf("%d", &pen);
printf("Enter the cost of Pencil:\n");
scanf("%d", &pencil);
printf("Enter the cost of Eraser:\n");
scanf("%d", &eraser);
printf("Items Details\n");
printf("A4sheet:%d\n", a4);
printf("Pen:%d\n", pen);
printf("Pencil:%d\n", pencil);
printf("Eraser:%d\n", eraser);
return 0;
}
Please give all this program in JAVA
ReplyDeletePlease give all this program in hothon
ReplyDeletePlease give all this program in Python
ReplyDelete