#include <stdio.h>
#include <time.h>
#include <stdlib.h>

main(){
int player = 0, computer;

srand(time(NULL));

printf("【ジャンケンゲーム】\n");

//プレイヤーの手を入力
printf("ジャンケンゲーム・・・(グー:1 チョキ:2 パー:3を入力) > ");
scanf("%d", &player);

computer = rand()%3 + 1;
printf("コンピュターは");
if(computer == 1) {printf("グー");}
else if(computer == 2) {printf("チョキ");}
else {printf("パー");}
printf("! ");

if(computer == player){printf("あいこ\n");}
else if(player == 1 && computer == 2) {printf("プレイヤーの勝ち\n");}
else if(player == 2 && computer == 3) {printf("プレイヤーの勝ち\n");}
else if(player == 3 && computer == 1) {printf("プレイヤーの勝ち\n");}
else{printf("コンピュターの勝ち\n");}

return 0;
}

janken.cです。