blob: d4679a38b2df16d326517bd62ac85f71860c7f6d (
plain)
1
2
3
4
5
6
7
|
//Example 4.5
clc
printf("Enter value for Item, partno, cost : ");
printf("\n [Enter values in single line seperated by spaces]) ");
[Item, partno,cost]=scanf("%11s %d %f");;
printf("Item = %11s, partno = %d, cost = %f ", Item, partno,cost);
|