Computer Science, asked by anshika1307, 9 months ago

Mr. Oreki pls tell the variable descriptions for both the programs asked by me..​

Answers

Answered by Oreki
8

Program 1 -

Class/Method Name Variable Name Data Type Uses

Calculator result int To store result.

add a int To accept the number to be added.

sub a int To accept the number to be subtracted.

mul a int To accept the number to be multiplied.

div a int To accept the number to be divided.

Program 2 -

Class/Method Name Variable Name Data Type Uses

Number num int To store a number.

x int To initialise num variable.

reverse n int To accept the number to be reversed.

number int To store and return the reversed number.

Similar questions