Page 29-30
This commit is contained in:
		@@ -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
									
								
							
							
						
						
									
										23
									
								
								c-basic/parameters_2.c
									
									
									
									
									
										Normal 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;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user