Page 29-30

This commit is contained in:
Mert Gör 🇹🇷 2024-11-10 03:37:00 +03:00
parent 42d016d230
commit 6d36efe449
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
2 changed files with 29 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2024-11-10 Mert Gör <mertgor@masscollabs.xyz>
* c-basic/C.pdf: Page 29(end of 29) and 30 Bazı matematiksel standart c fonksiyonları
* c-basic/parameters_2.c (main): return a * b or return a + b
2024-11-02 Mert Gör <mertgor@masscollabs.xyz>
* c-basic/parameters.c: parameters example 1

23
c-basic/parameters_2.c Normal file
View File

@ -0,0 +1,23 @@
#include <stdio.h>
int add(int a, int b)
{
return a + b;
}
int mul(int a, int b)
{
return a * b;
}
int main()
{
int result;
result = add(10, 20);
printf("add result is %d\n", result);
result = mul(10,20);
printf("multiply result is %d\n", result);
return 0;
}