URI Problem 2031 (Rock, paper,Airstrike) solution( Bangla ) | C language

**Before watching this make sure that you’ve tried enough**


int main()
    char inp1[10],inp2[10];
    int i,n;
    for(i = 0;i < n;i++){
        scanf("%s %s", inp1, inp2);
                if(inp2[1]=='e' || inp2[1]=='a')printf("Jogador 1 venceu\n");
                else printf("Aniquilacao mutua\n");
        else if(inp1[1]=='e'){
                if(inp2[1]=='a')printf("Jogador 1 venceu\n");
                else if(inp2[1]=='e')printf("Sem ganhador\n");
                else printf("Jogador 2 venceu\n");
        else if(inp1[1]=='a'){
                if(inp2[1]=='a')printf("Ambos venceram\n");
                else printf("Jogador 2 venceu\n");

    return 0;


If this solution helped you, please share this with your friends.
And if you have anything to say, let me know in the comment section.

More solutions are coming so Like our Facebook page and Subscribe to our YouTube channel to stay connected.

Leave a Comment