double a + b = c

This commit is contained in:
Mert Gör
2024-06-30 15:36:03 +03:00
parent cc75cc97df
commit 15028c55de
2 changed files with 16 additions and 0 deletions

14
c-basic/ab_c.c Normal file
View File

@ -0,0 +1,14 @@
#include <stdio.h>
int main()
{
double a, b, c;
printf("type your number a:");
scanf("%lf", &a);
printf("type your number b:");
scanf("%lf", &b);
c = a + b;
printf("c is %f\n", c);
return 0;
}