- 3
C
C program for name of item,price quantity
7 odpowiedzi
+ 2
Attempts?
+ 1
S.vaishnavi
Her means try to write code and show attempts.
+ 1
S.vaishnavi you can not store name in a single character, use char array to hold the name. Like
char name[50];
scanf ("%s",&name);
0
No
0
S.vaishnavi please try at least
0
What do you mean
0
#include <stdio.h>
void main()
{
char name;
int price, quantity;
printf("enter name of item\n");
scanf("%c",&name);
printf("price\n");
scanf("%d",&price);
printf("quantity");
scanf("%d",&quantity);
return 0;
}