double and float

This commit is contained in:
Mert Gör 🇹🇷 2025-04-12 21:39:46 +03:00
parent 2255d2f5ca
commit 7b90c42e43
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F

17
c-basic/double.c Normal file
View File

@ -0,0 +1,17 @@
#include <stdio.h>
int main()
{
float f;
double d;
printf("float :");
scanf("%f", &f);
printf("double :");
scanf("%lf", &d);
printf("f = %f, d = %f", f, d);
return 0;
}