#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();
}
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.
Only 1 exists, and it is "999"
Check digits are determined (or derived) by a set algorithm using the digits of the account number.
Eight binary digits are called a byte.Four binary digits are a nibble.
There are different ways to do it. One is to convert it to a String, then use the string manipulations methods to extract individual digits as strings. You can then convert them back to numbers. Another is to do some calculations. For example, to get the last digit: int i = 12345; int lastdigit = i % 10; //To get additional digits, divide by 10 and repeat: i /= 10; int lastdigit = i % 10; In this case you can create a loop for this (repeating while i > 0), and copy the digits to an array.
more that 50 digits.
divid the last to digits by 4
707
Press Alt key in the keyboard and press the digits 0,1,6,9
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
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.
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 significant digits of a number represent a count of digits and so are represented by an integer. Any integer can be written in fractional form.