Horje
function of science writing of a number Code Example
function of science writing of a number
#include <stdio.h>
void science_writing(float *number){
	int result=0;
	if(*number>1){
		while (*number>1){
			result++;
		 *number/=10;
	}
	printf("%d",result);
	printf("the science writing of this number i;$s :%f × 10^%d",*number,result);
	}
	else if(*number<1){

		while(*number<1){
			result++;
			*number*=10;
		}
			printf("the science writing of this number i;$s :%f × 10^-%d",*number*0.1,result-1);
	}
}
int main()
{
	float momne;
	int result=0;
	printf("enter the number :");
	scanf("%f",&momne);
	science_writing(&momne);
  return 0;
}




C

Related
C %s Code Example C %s Code Example
c logarithm check if number is base Code Example c logarithm check if number is base Code Example
npm fs zip Code Example npm fs zip Code Example
#include <iostream> using namespace std;  int main() { for(int i=3;i!=0; i--) { count<<i--<<" "; } } Code Example #include <iostream> using namespace std; int main() { for(int i=3;i!=0; i--) { count<<i--<<" "; } } Code Example
gcd in c program Code Example gcd in c program Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12