One way to do this is to convert the number to a String, then use the corresponding String method to find out the length of the String.
The greatest number is infinity.
Yes
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.
1. Find algorithm.2. Implement it.Hint: if a non-zero N number has K 1-bits, then (N AND N-1) has K-1 1-bits.
sdfsdfsfsggbcvbg
No, thanks.
syntax error
Write a C program called MonthDays to find the number of days in a given month Test your code with different input values to demonstrate that your function is robust?
One way to do this is to convert the number to a String, then use the corresponding String method to find out the length of the String.
Yes, do write, or if you're too lazy to your homework, use google.
There is no such thing; you seem to have misunderstood something.Any real number can be regarded as a complex number with zero imaginary part, eg.: 5 = 5+0i
1 quart = 2 pints To find the number of quarts in a given number of pints, divide the given number of pints by 2 .
The greatest number is infinity.
You can find your trusted traveler number on the back of your Trusted Traveler Program card or in your online account on the program's website.
#include<stdio.h> #include<conio.h> void main() { int n,a=2; clrscr(); printf("\n enter n"); scanf("%d",&n); if(i<=a-1) { if(a%i==0) { printf("\n the given number is not a prime number"); break; } i++; if(a==i) { printf("\n the given number is a prime number"); } getch(); output: enter the value of n:2 the given number is prime number
Given a number, if you can find another number (usually smaller than the given number) when multiplied by itself yields the original given number then the original given number is a perfect square number