Accept the Float Value as a Input. Print the Same in its Exponential Form Using C- Program - Learn Engineering

All the news and updates relevant to Engineering. You can also Write a post here

Breaking

Friday, June 12, 2020

Accept the Float Value as a Input. Print the Same in its Exponential Form Using C- Program

Learn C programming

Question

Accept the Float Value as an Input. Print the Same in its Exponential Form

Sample TestCase Expected Output

1. 1234.5671.234567e+03

Answer

#include <stdio.h>

int main()
{
    int num;
    scanf("%f",&num);
    printf("%e",num);
    return 0;
}


Comment What problem Do you Need...

Follow Us For More...

1 comment: