Joined
Last Seen
-4 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.73K
1 Posted Topic
# include <stdio.h> void main () { Int [COLOR="Red"]N[/COLOR]; printf("Input [COLOR="Green"]number[/COLOR]:"); scanf("%d",&[COLOR="Red"]N[/COLOR]); [COLOR="Green"]if[/COLOR] (N==1){ printf("One"); } [COLOR="Green"]else if[/COLOR] (N==2){ printf("Two"); } [COLOR="Green"]else[/COLOR] { printf("Invalid") } } why don't you used else if? its good but super basic...
The End.
Kalel Kristoff