if (card0 < card1){
cout << card0 << " is less than " << card1;
}else
if (card0 == card1){
cout << card0 << " is equal to " << card1;
}else
if (card0 > card1){
cout << card0 << " is greater than " << card1;
}
return 0;
}
I have to create a program which uses a function to randomly sets the suit and facevalue of a playing card. Create another function that tests if one card is greater than another. Then write a program that uses the 2 functions to repeatedly set and display the values of 2 ramdom cards until 5 of the card pairs compare as the first is greater than the second.