#include<stdio.h>
#include<conio.h>
void main()
{
int num,num_save;
int ar[5],i=0,res_e=0,res_o=0;
printf("\nEnter the number : ");
scanf("%d",&num);
num_save=num;
while(num_save>0)
{
ar[i]=num_save%10;
num_save/=10;
i++;
}
i--;
while(i>=0)
{
if(ar[i]%2==0)
res_e=res_e+ar[i];
else
res_o=res_o+ar[i];
}
printf("\nNumber is %d\n",num);
printf("\nSum of even digits is %d",sum_e);
printf("\nSum of odd digits is %d",sum_o);
getch();
}
In 8086 assembly language, you can accept two input digits by using interrupts to read from the keyboard. You would typically use the INT 21h service with function 01h to read a character, storing each digit in a register or memory location. After reading both digits, you can convert them from ASCII to their numeric values by subtracting 30h from each character. This allows you to perform arithmetic operations on the input digits as needed.
Perhaps you mean an automorphic number? Loop through a series of numbers - for example, all numbers from 1 to 10,000 - and check each of the numbers, whether the condition applies. The condition in this case is that if you square the number, the last digits represent the original number.
Check digits are determined (or derived) by a set algorithm using the digits of the account number.
Only 1 exists, and it is "999"
Eight binary digits are called a byte.Four binary digits are a nibble.
more that 50 digits.
Press Alt key in the keyboard and press the digits 0,1,6,9
divid the last to digits by 4
707
computer
2 x 56.
8161 is a Spook Number. It is made up of digits that are not 0s. All the digits separately add up to give double the first digit. 8+1+6+1=16 2x8=16
Nobody is responsible. Different groups have decided, on their own, to calculate pi to many digits - as a sort of challenge.
5,983,948,393,122,123,098 nahson.com for more information
There are several infinite series. To find PI to x digits, evaluate each term to x+2 digits until the value is 0. Then round to x digits.
The square root of 5 is approximately 2.236. It is an irrational number meaning we can not calculate its value no matter how many digits we can find. At one point a NASA computer was used to calculate the first million digits of the number.
The individual is a "polydactyl ". The condition is "polydactyly" or "polydactylism", a congenital anomaly. The extra digits are referred to as "supernumerary digits".