You're sitting in a Math class in which your professor uses very specific methods. On the square board he insists to trace everything back to its roots to show you the power of mathematics. He gives you two 2-digit integers. Your answer shall be a single 2-digit integer. The first digit is calculated by raising the first digit of the first integer to the power of 3. For the second digit, it would be the last digit of the second integer. Note: Read input as 2 integers in total. You cannot use strings. Only mathematical operators are allowed. Sample Run Enter 2 digit integers: 26 15 The resulting integers is 85 Explanation First digit of first integer (26) is 2. (2ª= 8) Last digit of second integer (15) is 5.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
You're sitting in a Math class in which your professor uses very specific
methods, On the square board he insists to trace everything back to its roots to
show you the power of mathematics. He gives you two 2-digit integers. Your
answer shall be a single 2-digit integer. The first digit is caleulated by raising the
first digit of the first integer to the power of 3. For the second digit, it would be
the last digit of the second integer.
Note: Read input as 2 integers in total. You cannot use strings. Only
mathematical operators are allowed.
Sample Run
Enter 2 digit integers: 26 15
The resulting integers is 85
Explanation
First digit of first integer (26) is 2. (2ª= 8)
Last digit of second integer (15) is 5.
Transcribed Image Text:You're sitting in a Math class in which your professor uses very specific methods, On the square board he insists to trace everything back to its roots to show you the power of mathematics. He gives you two 2-digit integers. Your answer shall be a single 2-digit integer. The first digit is caleulated by raising the first digit of the first integer to the power of 3. For the second digit, it would be the last digit of the second integer. Note: Read input as 2 integers in total. You cannot use strings. Only mathematical operators are allowed. Sample Run Enter 2 digit integers: 26 15 The resulting integers is 85 Explanation First digit of first integer (26) is 2. (2ª= 8) Last digit of second integer (15) is 5.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Topological Sort
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education