0% found this document useful (0 votes)
58 views

Must Solve 100 Programs Part 2 - 10

The document provides descriptions of 10 programming problems that students must solve for campus placement. Each problem is presented with sample input/output examples and a link to solve the problem. The problems include comparing two numbers, finding the largest/smallest of two numbers, calculating remainders, determining if a score is a pass or fail, multiplying numbers, finding unit digits, and determining if a character represents male or female.

Uploaded by

Rohit Roushan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

Must Solve 100 Programs Part 2 - 10

The document provides descriptions of 10 programming problems that students must solve for campus placement. Each problem is presented with sample input/output examples and a link to solve the problem. The problems include comparing two numbers, finding the largest/smallest of two numbers, calculating remainders, determining if a score is a pass or fail, multiplying numbers, finding unit digits, and determining if a character represents male or female.

Uploaded by

Rohit Roushan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Must Solve 100 Programs

for Campus Placement

Part - 2/10
1) Two Numbers Equal

The program must accept two numbers and print yes if


they are equal. Else the program must print no as the
output.

Example Input/Output 1:
Input:
40 40

Output:
yes

Example Input/Output 2:
Input:
50 90

Output:
no

Click the link below to solve this program


http://www.skillrack.com/solve/7876

1
2) Largest of Two Numbers

The program must accept two numbers and print the


largest number.

Example Input/Output 1:
Input:
12 25

Output:
25

Example Input/Output 2:
Input:
95

Output:
9

Click the link below to solve this program


http://www.skillrack.com/solve/7877

2
3) Print Remainder when Divided by 5

The program must accept a number and print its


remainder when it is divided by 5.

Example Input/Output 1:
Input:
12

Output:
2

Example Input/Output 2:
Input:
10

Output:
0

Click the link below to solve this program


http://www.skillrack.com/solve/7878

3
4) Pass or Fail

The program must accept a mark and print if it is pass or


fail. The pass mark is 40.

Example Input/Output 1:
Input:
40

Output:
pass

Example Input/Output 2:
Input:
32

Output:
fail

Click the link below to solve this program


http://www.skillrack.com/solve/7875

4
5) Multiply Two Numbers

Accept two numbers and print their product.

Example Input/Output 1:
Input:
45

Output:
20

Example Input/Output 2:
Input:
11 12

Output:
132

Click the link below to solve this program


http://www.skillrack.com/solve/7879

5
6) Multiply Three Numbers

Accept three numbers and print their product.

Example Input/Output 1:
Input:
2 5 10

Output:
100

Example Input/Output 2:
Input:
637

Output:
126

Click the link below to solve this program


http://www.skillrack.com/solve/7883

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

Click the link below to solve this program


http://www.skillrack.com/solve/7881

7
8) Smallest of Two Numbers

The program must accept two numbers and print the


smallest number.

Example Input/Output 1:
Input:
14 23

Output:
14

Example Input/Output 2:
Input:
51

Output:
1

Click the link below to solve this program


http://www.skillrack.com/solve/7882

8
9) Character - Male or Female

The program must accept a character.


- If the character is m, print male
- If the character is f, print female

Click the link below to solve this program


http://www.skillrack.com/solve/7884

10) Remove Unit Digit

The program must accept a number and remove the unit


digit.

Note:​ The number is greater than 9.

Example Input/Output 1:
Input:
102

Output:
10

9
Example Input/Output 2:
Input:
12345

Output:
1234

Click the link below to solve this program


http://www.skillrack.com/solve/7880

10

You might also like