#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;
}
Code Example |
---|
C :: To get file info |
C :: C How to use enums for flags? |
C :: gotoxy not working in dev c++ |
C :: c text modifiers |
C :: snprintf with malloc |
C :: Program optimization |
C :: change variable type in c |
C :: create a buffer in c |
C :: C do...while loop |
C :: youtube code |
C :: free array in c |
C :: robtex |
Dart :: how to diable flutter for web |
Dart :: flutter column center horizontal text |
Dart :: flutter sharedpreferences clear |
Dart :: how to make a column scrollable in flutter |
Dart :: round to decimal places dart |
Dart :: appbar icon |
Dart :: dart timer delay |
Dart :: image from internet flutter |
Dart :: how to take integer input from user in dart |
Dart :: send null icon flutter |
Dart :: flutter firestore read data |
Dart :: list of strings in dart |
Dart :: flutter delay a function |
Dart :: dart enum |
Dart :: getting pi in flutter |
Dart :: flutter refresh page |
Dart :: badge flutter |
Dart :: flutter sliver grid |