Write a program that accepts a number and determines whether the number is positive or negative. If it is positive, display the message "Positive!". Otherwise, display "Negative!". For example: Input...


Sample for Double-if



Write a program that accepts a number and determines whether the number is positive or<br>negative. If it is positive, display the message
2 int main(void){ int num; scanf("%d", &num); if(num>=0) 3 5 6 printf("Positive!"); 7 else 8. printf(“Negative!"); 9 } 10 "/>
Extracted text: Write a program that accepts a number and determines whether the number is positive or negative. If it is positive, display the message "Positive!". Otherwise, display "Negative!". For example: Input Result Positive! -3 Negative! Answer: (penalty regime: 10, 20, . %) ... RESET ANSWER 1 #include 2 int main(void){ int num; scanf("%d", &num); if(num>=0) 3 5 6 printf("Positive!"); 7 else 8. printf(“Negative!"); 9 } 10

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here