C Programming Rock-Paper-Scissors Not Working : <p>I'm having a problem with this C Programming activity. I'm new to C-Programming and would really like to ask you guys for your help. So please bear with me.</p>

<p>So here's the problem...</p>

<p>When I run the program as I enter my choice for Player Two the program automatically stops and closes. It wont even let me press "ENTER" before it closes. I tried everything else I can and looked for a solution online but to no avail. I am only allowed to use the conditional statement If-Else for this. I would really appreciate any suggestions. Thanks in advance. </p>

<pre><code>#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;

void main(){
clrscr();
char one, two;

printf("\t\t\t      Rock-Paper-Scissors\n");
printf("Choose from the following:\n");
printf("r for Rock\np for Paper\ns for Scissors\n\n");
printf("Player One enter your choice: ");
scanf("%c",&amp;one);
printf("Player Two enter your choice: ");
scanf("%c",&amp;two);
printf("\n");


//rock over scissors
if (one == 'r' &amp;&amp; two == 's'){
    printf("Rock Destroys Scissors\n");
    printf("Player One Wins!");
}
else if (two == 'r' &amp;&amp; one == 's'){
    printf("Rock Destroys Scissors\n");
    printf("Player Two Wins!");
}
//paper over rock
else if (one == 'p' &amp;&amp; two == 'r'){
    printf("Paper Covers Rock\n");
    printf("Player One Wins!");
}
else if (two == 'p' &amp;&amp; one == 'r'){
    printf("Paper Covers Rock\n");
    printf("Player Two Wins!");
}
//scissors over paper
else if (one == 's' &amp;&amp; two == 'p'){
    printf("Scissors Cut Paper\n");
    printf("Player One Wins!");
}
else if (two == 's' &amp;&amp; one == 'p'){
    printf("Scissors Cut Paper\n");
    printf("Player Two Wins!");
}
else
    printf("It's a Tie!");
getch();
}
</code></pre>
