Professional Documents
Culture Documents
Must Solve 100 Programs Part 2 - 10
Must Solve 100 Programs Part 2 - 10
Part - 2/10
1) Two Numbers Equal
Example Input/Output 1:
Input:
40 40
Output:
yes
Example Input/Output 2:
Input:
50 90
Output:
no
1
2) Largest of Two Numbers
Example Input/Output 1:
Input:
12 25
Output:
25
Example Input/Output 2:
Input:
95
Output:
9
2
3) Print Remainder when Divided by 5
Example Input/Output 1:
Input:
12
Output:
2
Example Input/Output 2:
Input:
10
Output:
0
3
4) Pass or Fail
Example Input/Output 1:
Input:
40
Output:
pass
Example Input/Output 2:
Input:
32
Output:
fail
4
5) Multiply Two Numbers
Example Input/Output 1:
Input:
45
Output:
20
Example Input/Output 2:
Input:
11 12
Output:
132
5
6) Multiply Three Numbers
Example Input/Output 1:
Input:
2 5 10
Output:
100
Example Input/Output 2:
Input:
637
Output:
126
6
7) Print Unit Digit
The program must accept a number and print its unit digit.
Example Input/Output 1:
Input:
72
Output:
2
Example Input/Output 2:
Input:
65
Output:
5
7
8) Smallest of Two Numbers
Example Input/Output 1:
Input:
14 23
Output:
14
Example Input/Output 2:
Input:
51
Output:
1
8
9) Character - Male or Female
Example Input/Output 1:
Input:
102
Output:
10
9
Example Input/Output 2:
Input:
12345
Output:
1234
10