Assuming the number is represented by a decimal integer, initialise a counter to zero, then repeatedly divide the number by 10 and until the number is zero. After each division, examine the remainder. Each time the remainder is zero, increment the counter.
If the number is represented by a decimal float, repeatedly multiply by 10 until the value is an integer, then perform the previous algorithm.
// Define and initialize input buffer char inputBuffer[256]; memset(inputBuffer, '\0', 256); // Get input scanf("%s", inputBuffer); // Display exactly what the user typed in printf("%s\n", inputBuffer);
Identification Division.Program-id. Example1.Data Division.Working-storage Section.01 Num1 Pic 999 Value Zeros.01 Num2 Pic 9 Value Zeros.01 Num3 Pic 99 Value 10.01 Result Pic 999 Value Zeros.01 Temp Pic 99.Procedure Division.Calculator.Display "enter First Number :".Accept Num1.Perform Until Num1 = 0Divide Num1 By Num3 Giving Temp Remainder Num2Compute Result =(result * Num3) + Num2Compute Num1 = Num1 / Num3End-performDisplay "result Is=", Result.Stop Run.
//Reverse of the Number #include<stdio.h> #include<conio.h> int main () { int num,mod,rev=0; printf("Enter a number:"); scanf("%d", &num); while (num>0) { mod=num%10; rev=(rev*10)+mod; num=num/10; } printf("Reverse of the given number: %d", rev); getchar(); return 0; } // alternative solution based on reversing the alphanumeric representation of // the number: void rev(int me) { char alpha[32]; sprintf(alpha, "%d", me); for (const char* cp = alpha + strlen(alpha) - 1; cp >= alpha; --cp) { putchar(cp); } }
Root locus
#include<stdio.h> #include<conio.h> void main() { char b=0; float a; clrscr(); a=1.234; printf("\n%d%d%d%d%.3f",b,b,b,b,a); getch(); }
Seeing as a googol of zeros would be 10^100 zeros, that number of zeros would be quite hard to write out. If you were to try and write out that many zeros by hand at 3 zeros per second, it would still take you 1.05699307 × 1092 years to write them all out.
2*1020 this is called 200quintillion a quintillion is a number with 18 zeros a sextillion is a number with 21 zeros your number has 20 zeros therefore it is not quite a sextillion yet.
The number is spelled googol. To write it in number format, write a 1, followed by one hundred zeros.
When given x number of hundreds, simply write the number followed by two zeros. So, 54 hundreds is 5400. When added to seven, this will be equal to 5407.
Million is the name given to a number with 7 digits in front of the decimal place. In order to write out any number take the number you are given and and move the decimal place to the right until you have 7 digits in front of the decimal. add zeros to the end until it has 7 digits in front of the decimal place. So 2.25 million would be 2,250,000.
A quindecillion.
It is called a Googol.
70 sextillion sextillion is a number with 21 zeros septillion is a number with 24 zeros your number has 22 zeros. it is not quite a septillion but it falls in the category of a sextillion
Six million as a number has six zeros 6,000,000.
Yes it is a number it is a number because that is the name somebody has given to 1 followed by 183 zeros
To write 8333 million in number form just add six zeros, like this 8,333,000,000
He did not write 3 zeros in the middle of the number. Instead, he wrote 2 zeros.