Sayıların printf Fonksiyonuyla Formatlanması sayfa 78
This commit is contained in:
		@@ -1,5 +1,7 @@
 | 
				
			|||||||
2025-03-07  Mert Gör  <mertgor@masscollabs.xyz>
 | 
					2025-03-07  Mert Gör  <mertgor@masscollabs.xyz>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						* c-basic/CSD-C-Basic-Book/C.pdf: Sayıların printf Fonksiyonuyla Formatlanması sayfa 78
 | 
				
			||||||
 | 
						
 | 
				
			||||||
	* c-basic/CSD-C-Basic-Book/C.pdf: Fonksiyonların Geri Dönüş Değerleri (return value) sayfa 22 
 | 
						* c-basic/CSD-C-Basic-Book/C.pdf: Fonksiyonların Geri Dönüş Değerleri (return value) sayfa 22 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2025-02-04  Mert Gör  <mertgor@masscollabs.xyz>
 | 
					2025-02-04  Mert Gör  <mertgor@masscollabs.xyz>
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										27
									
								
								c-basic/do_while_example_01.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								c-basic/do_while_example_01.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
				
			|||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					#include <ncurses.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int main(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  char ch;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  do
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  printf("(e)vet/(h)ayir?");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ch = getch();
 | 
				
			||||||
 | 
					  printf("%c\n", ch);
 | 
				
			||||||
 | 
					} while (ch != 'e' && ch != 'h');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  if (ch == 'e')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    printf("evet secildi\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  else
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    printf("hayir secildi\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										11
									
								
								c-basic/for_example_01.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								c-basic/for_example_01.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int main(void){
 | 
				
			||||||
 | 
					  int i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  for (i = 0; i < 10; ++i)
 | 
				
			||||||
 | 
					    printf("%d\n", i);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  return 0;
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										12
									
								
								c-basic/putchar.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								c-basic/putchar.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					#include <ncurses.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int main()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  char ch;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  while ((ch = getch()) != 'q')
 | 
				
			||||||
 | 
					    putchar(ch);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										12
									
								
								c-basic/while_example_01.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								c-basic/while_example_01.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int main()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  int i = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  while (i < 10) {
 | 
				
			||||||
 | 
					    printf("%d\n", i);
 | 
				
			||||||
 | 
					    ++i;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										13
									
								
								c-basic/while_example_02.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								c-basic/while_example_02.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int main(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  int i = 10;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  while (i) {
 | 
				
			||||||
 | 
					    printf("%d\n", i);
 | 
				
			||||||
 | 
					    --i;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user