Search
 
SCRIPT & CODE EXAMPLE
 

C

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
", num1);
    printf("num2 = %lf", num2);
  
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: 2d array in c 
C :: iterate through enum in qt 
C :: mysql yyyymm format 
C :: subrayar elementos css 
C :: increment and decrement operator 
C :: mediawiki upload size 
C :: c assignment operators 
C :: refresh a chromebook terminal 
C :: check if string contains a character in c 
C :: gitlab ci heroku 
C :: Compile multiple C files 
C :: script in c 
C :: rust unit test display 
C :: c calling a function 
C :: c pointers and arrays 
C :: arduino dont working dc motor 
C :: voide means in c 
C :: program in c to print 1 to 100 without using loop 
C :: router solicitation and advertisement magic is used by 
C :: What does x = (a<b)? A:b mean in C programming? 
C :: C (GEM) 
C :: how to write flash memory in stm32f030 
C :: ssl_get_servername return null 
C :: c "hello world" 
C :: C static libraries creation 
C :: C Nested if...else 
C :: write a ppm image 
C :: rainmaker simple project 
C :: terrenery opertori with return in c 
C :: c declare float 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =