It depends upon which language you intend to write your script, however 5 digit numbers are simply numeric value and any scripting language that supports basic arithmetic operators will be able to achieve this easily. The hardest part is converting the user input (which is typically a character sequence) into an actual number, however most scripting languages will provide some means of converting strings to numeric values.
<script type = "text/javascript"> var input; var rev = 0; input=window.prompt ("Please enter a 5-digit number to be reversed."); input = input * 1; while (input > 0) { rev *= 10; rev += input % 10; input /= 10; } document.write ("Reversed number: " + rev); </script>
Just generate the Fibonacci numbers one by one, and print each number's last digit ie number%10.
Nine million of them.
160 and 192.
#include int main(void){int a;for(a=100;a
3
2000.The smallest four-digit number there can be is 1000. So, add 1000 and 1000 to get 2000, then least sum you can get when adding two four-digit numbers.
You can use C++ program to decrypt 3 digit number
19, 998.
99 + 99 = 198
Dog
Units (right-hand side)
none
3 digit numbers are lessthan 4 digit numbers
1023, 1056 and just keep adding 33 until you get to 9999
No. The largest value you can get from adding eight 1-digit numbers is 9 + 9 + 9 + 9 + 9 + 9 + 9 + 9 = 8*9 = 72
1000, 1004, 1008, 1112 and just keep adding four until you get to 9996.