C Programming
#include
#include
void main()
{
int a,b;
char rice,sugar;
clrscr();
printf("Enter the price of item & item name :");
scanf("%d",&a);
scanf("%s",rice);
printf("Enter the price of item & item name:");
scanf("%d",&b);
scanf("%s",sugar);
printf("**** LIST OF ITEM ****\n");
printf(" Item price\n");
printf("\nRice=%d%s",a,rice);
printf("\nSugar=%d%s",b,sugar);
getch();
}
0 comments:
Post a Comment