Posts
 
Reputation
Joined
Last Seen
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
1 Commented Post
0 Endorsements
Ranked #107.73K
~869 People Reached
Favorite Forums
Favorite Tags

1 Posted Topic

Member Avatar for zerohero

# 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...

Member Avatar for Kalel Kristoff
0
869

The End.