Computer Science, asked by rkcoloursstudio, 10 months ago


16 Sakshi has written the program to print the average of three numbers. She should declare all variables in the
same line and assign the same value to all variables. What changes should Sakshi made in the following code
to achieve the same?
A-100
X=100
7-100
avg A+X+23
print("Average of the number is",avg)​

Answers

Answered by Anonymous
1

int A=100

int X= 100

int m=100

int avg=(A+X+m)/3

printf("average",avg);

Similar questions