<mosaic.cnfolio.com>
PROGRAM
1. /* START
2.      Get Player 1's cars
3.      Put Player 1's cards in decending order
4.      Get Player 2's cards
5.      Put player 2's cards in decending order
6.
7.        WHILE both Players have cards in their hands
8.           IF Player 1's card has a larger value than Player 2's card
9.              THEN
10.                 Player 1 wins
11.              ELSE Player 2 has the larger value card
12.              THEN
13.                 Player 2 wins
14.           END IF
15.        END WHILE
16.
17.        IF Player 1's is 0 and Player 2's cards greater than 0
18.           THEN
19.              Player 2 wins
20.           ELSE
21.              Player 2 has 0 cards and Player 1 has greater than 0 cards
22.           THEN
23.              Player 1 wins
24.        END IF
25.
26.        IF both players draw the same value of cards
27.           THEN
28.              Player 1 and Player 2 draw
29.        END IF
30.
31.        IF Player 1's number of cards are less than 2
32.           THEN
33.              Screen will display 'Choose another  card'
34.           ELSE
35.              If Player 2's number of cards are less than 2
36.           THEN
37.              Screen will display 'Choose another card'
38.        END IF
39.
40.        IF Player 1's number of cards are more than 10
41.           THEN
42.              Screen will display 'ERROR'
43.           ELSE
44.              If Player 2's number of cards are more than 10
45.           THEN
46.              Screen will display 'ERROR'
47.        END IF*/
48.
49.
50.  #include <stdio.h>
51.
52. int main( void )
53.
54. {
55.       int card;
56.       int i, j, n;
57.
58.       for(i=0;i<=9;i++)
59.       {
60.
61.           scanf("%d\n" ,&n);
62.       }
63.
64.       for(i=0;i<=8;i++)
65.       {
66.           for(j=i+1;j<=9;j++)
67.           {
68.               int temp;
69.
70.               if(card[i] < card[j])
71.               {
72.                   temp = card[i];
73.                   card[i] = card[j];
74.                   card[j] = temp;
75.               }
76.           }
77.       }
78.
79.       for(i=0;i<=9;i++)
80.       {
81.       printf( "%d",card[i]);
82.
83.       }
84.
85.
86.
87.       return 0;
88. }