for文のことでわからない事があるので教えて下さい。

僕の読んだ本によると、
例えば↓
int i;
for(i=0;i<5;i++){
printf("%d",i);}
はまずi=0を実行しi<5を判定し真なら条件式に当てはまっている為
ブロックの中身printf("%d",i);を実行すると書いてありました。

でもこのジャンケンゲーム↓
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

main(){

int computer,x,player = 0,p_win = 0,p_lose = 0,draw = 0,c_win = 0;

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

for(x = 0; x<5; x++){
printf("ジャンケン…(プレイヤーは「1:ぐー、2:チョキ、3:パー」を入力)>");
scanf("%d",&player);
while(getchar() != '\n');
if(player == 1){printf("プレイヤーはグー!!\n");}
else if(player == 2){printf("プレイヤーはチョキ!!\n");}
else if(player == 3){printf("プレイヤーはパー!!\n");}
else{printf("※プレイヤーは不正な手を入力しました\n");}