THe rules for using operators are stated in the code-editor as comments. The resulting data-type is also stated.
THe rules for using operators are stated in the code-editor as comments. The resulting data-type is also stated.
This example shall be giving you thorough knowledge of the process of execution on arithmetic operators, how the data type are processed and how the arithmetic operations are performed.
Elementary data types for arithmetic operations are int & float.
Integers (= whole numbers) have no fractional part or decimal point. Floating point numbers have a decimal point or mantissa and
A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself. For example, 5 is a prime number as it is only divisible by 1 and 5.
An Armstrong number is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number since 3^3 + 7^3 + 1^3 = 371.
A palindromic number or numeral palindrome is a number that remains the same when its digits are reversed. Like 16461, for example, it is "symmetrical".