1 2 3 4 5 6 7 8 9
// Example 2.11, page no-121 clear clc A=1 p1=10 W1=A*p1 printf("W1 = %d kg",W1) printf("\nWith the 4 standard weights of 10kg, 20kg, 30kg and 40kg ")