High Card

I am creating a program that asks the user to enter cards and then i need to tell them which on is the highest any help pr advice would be great thanks
closed account (o1vk4iN6)
pseudocode

1
2
3
4
5
6
7
8
9
int highest = MIN;

while get input:
     get user input >> next

     if next > highest:
          highest = next

print highest
Last edited on
Topic archived. No new replies allowed.