Float & Double example
This commit is contained in:
		@@ -1,5 +1,7 @@
 | 
			
		||||
2024-06-30  hwpplayer1  <hwpplayer1@debian>
 | 
			
		||||
 | 
			
		||||
	* c-basic/float_double.c: float double example
 | 
			
		||||
 | 
			
		||||
	* c-basic/hex_scanf.c: hex scanf example
 | 
			
		||||
 | 
			
		||||
	* c-basic/scanf_2.c: scanf two numbers
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										17
									
								
								c-basic/float_double.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								c-basic/float_double.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
 | 
			
		||||
int main()
 | 
			
		||||
{
 | 
			
		||||
    float f;
 | 
			
		||||
    double d;
 | 
			
		||||
 | 
			
		||||
    printf("float bir deger giriniz:");
 | 
			
		||||
    scanf("%f", &f);
 | 
			
		||||
 | 
			
		||||
    printf("double bir deger giriniz:");
 | 
			
		||||
    scanf("%lf", &d);
 | 
			
		||||
 | 
			
		||||
    printf("f = %f, d = %f\n", f, d);
 | 
			
		||||
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user