Write a program to input an integer, and if positive, change it to negative and if negative change it to positive
INPUT: Enter an integer: 12
OUTPUT: Sign changed: -12
INPUT: Enter an integer: -14
OUTPUT: Sign changed: 14
Answers
Answered by
1
Answer:
The answer is in the attachment
Attachments:
Similar questions