418226-25766 og Jump to level 1 Write an if-else statement for the following If numDifference is equal to -15, execute t
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
418226-25766 og Jump to level 1 Write an if-else statement for the following If numDifference is equal to -15, execute t
statement for the following If numDifference is equal to -15, execute totalDifference = -25. Else, execute totalDifference numDifference. 1 #include <stdio.h> 2 3 int main(void) ( 4 5 6 7 8 9 10 11 12) Check int totalDifference; int numDifference; scanf("%d", &numDifference); // Program will be tested with values: -14, -15, -16, -17. printf("%d", totalDifference); return 0; Try again 2
418226-25766 og Jump to level 1 Write an if-else