Skip to content

Commit 3df87b9

Browse files
committed
convert float to double using typecasting c-basics
1 parent 7799882 commit 3df87b9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

floattodouble.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include<stdio.h>
2+
void main()
3+
{
4+
float n;
5+
double y;
6+
printf("Enter the number");
7+
scanf("%f",&n);
8+
y=n;
9+
printf("Double value is %lf",y);
10+
}

0 commit comments

Comments
 (0)