1/ A Cuii number is the one whose digit sum is 17. Find out KthCuii number. K is an integer given as input and 1 <= K <= 1000. Sample Input Sample output 1 89 10 359 2 98 3 179 Here in the first case digit sum of 89 is 8 + 9 = 17. The first 5 cuii numbers are: 89, 98, 179, 188 and 197.
Operations
In mathematics and computer science, an operation is an event that is carried out to satisfy a given task. Basic operations of a computer system are input, processing, output, storage, and control.
Basic Operators
An operator is a symbol that indicates an operation to be performed. We are familiar with operators in mathematics; operators used in computer programming are—in many ways—similar to mathematical operators.
Division Operator
We all learnt about division—and the division operator—in school. You probably know of both these symbols as representing division:
Modulus Operator
Modulus can be represented either as (mod or modulo) in computing operation. Modulus comes under arithmetic operations. Any number or variable which produces absolute value is modulus functionality. Magnitude of any function is totally changed by modulo operator as it changes even negative value to positive.
Operators
In the realm of programming, operators refer to the symbols that perform some function. They are tasked with instructing the compiler on the type of action that needs to be performed on the values passed as operands. Operators can be used in mathematical formulas and equations. In programming languages like Python, C, and Java, a variety of operators are defined.
1/ A Cuii number is the one whose digit sum is 17.
Find out KthCuii number.
K is an integer given as input and 1 <= K <= 1000.
Sample Input | Sample output |
1 | 89 |
10 | 359 |
2 | 98 |
3 | 179 |
Here in the first case digit sum of 89 is 8 + 9 = 17. The first 5 cuii numbers are:
89, 98, 179, 188 and 197.
2/ You are given EEE and
highest total marks among them.
Fist line contains an integer value N.
Each of the next N lines contain two values
X and Y (X is the EEE mark, Y is the Programming marks).
Sample Input | Sample output |
5 70 80 100 90 95 95 100 80 60 50 |
190 |
Step by step
Solved in 3 steps with 1 images