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
Environmental Sciences,
1 month ago
Physics,
1 month ago
Math,
3 months ago
Chemistry,
10 months ago
English,
10 months ago