Horje
Float and Double Input/Output Code Example
Float and Double Input/Output

#include <stdio.h>
int main()
{
    float num1;
    double num2;
    
    printf("Enter a number: ");
    scanf("%f", &num1);
    printf("Enter another number: ");
    scanf("%lf", &num2);
  
    printf("num1 = %f\n", num1);
    printf("num2 = %lf", num2);
  
    return 0;
}




C

Related
variable in c Code Example variable in c Code Example
Stack POP Code Example Stack POP Code Example
pointer in C Code Example pointer in C Code Example
c program for swapping of two numbers Code Example c program for swapping of two numbers Code Example
cast from float to long c Code Example cast from float to long c Code Example

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