Dersler tekrar ele alınmakta. Örnekler gerekliliğe ( zorunluluğa göre yazılmakta ) Fonksiyonların Geri Dönüş Değerleri (return value)

This commit is contained in:
Mert Gör
2025-03-07 06:37:21 +03:00
parent eab45a320b
commit ab93cf0e5b
4 changed files with 48 additions and 0 deletions

View File

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

View File

@ -0,0 +1,13 @@
#include <stdio.h>
int main()
{
int a;
int b;
printf("Enter two numbers:\n");
scanf("%d%d", &a, &b);
printf("a = %d, b = %d\n", a, b);
return 0;
}

View File

@ -0,0 +1,15 @@
#include <stdio.h>
int main()
{
int a;
int b;
printf("Enter number a:\n");
scanf("%d", &a);
printf("Enter number b:\n");
scanf("%d", &b);
printf("a = %d, b = %d\n", a, b);
return 0;
}