Computer Science, asked by ritik12336, 10 months ago

a program using switch case to find absolute value of number​

Answers

Answered by FisahFisah
0

answer:-

These statements determine and print the absolute value of variable n. If n is negative, then n < 0 evaluates as true and n is assigned the value of -n, which is then printed in the next statement assuming variable n to be of some integer type. However, if the value of n is positive, it remains unchanged and is printed.

Answered by hardikrakholiya21
0

Explanation:

☑️

These statements determine and print the absolute value of variable n. If n is negative, then n < 0 evaluates as true and n is assigned the value of -n, which is then printed in the next statement assuming variable n to be of some integer type. However, if the value of n is positive, it remains unchanged and is printed.

hope it's help...

Similar questions