Rewrite the program with alittle bit of changes in this code

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter5: Looping
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question
100%

Rewrite the program with alittle bit of changes in this code

1
#include <stdio.h>
2
int main()
4日日
3
5
int TEMP, NUMBER;
7
printf("Please enter a number ");
8
scanf ( "%d", &NUMBER);
9.
10
11
TEMP = NUMBER / 2;
if ((TEMP 2.ep == NUMBER)
printf("\n%d* is event Number", NUMBER);
12
13
14
15
else
printf("\n%d is odd Number", NUMBER);
16
17
return e;
18
Transcribed Image Text:1 #include <stdio.h> 2 int main() 4日日 3 5 int TEMP, NUMBER; 7 printf("Please enter a number "); 8 scanf ( "%d", &NUMBER); 9. 10 11 TEMP = NUMBER / 2; if ((TEMP 2.ep == NUMBER) printf("\n%d* is event Number", NUMBER); 12 13 14 15 else printf("\n%d is odd Number", NUMBER); 16 17 return e; 18
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Datatypes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT