As mentioned above the variable “card” is a scalar.
To display the results of for loop you can create a Null vector and append the card value to the vector and while printing the output you can print the vector.
for i =1:2
card = randi([0 10])
if (card ==0)
card = 'A';
fprintf("You have been given 2 cards, %d %d", result);