C
This commit is contained in:
		
							
								
								
									
										9
									
								
								DeitelC/HelloPrint.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								DeitelC/HelloPrint.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| #include <stdio.h> | ||||
|  | ||||
| void HelloWorld(char print[]) { | ||||
|     printf("%s\n", print); | ||||
| } | ||||
|  | ||||
| int main(void) { | ||||
|     HelloWorld("print"); | ||||
| } | ||||
							
								
								
									
										28
									
								
								DeitelC/LargestNum.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								DeitelC/LargestNum.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| #include <stdio.h> | ||||
| int main(void) { | ||||
|     int number = 0; | ||||
|     int counter = 1; | ||||
|     int largest = 0; | ||||
|     printf("%s\n","Enter 10 positive Integer"); | ||||
|     scanf("%d", &number); | ||||
|  | ||||
|     while(counter < 10) { | ||||
|         printf("%s\n","Enter 10 positive Integer"); | ||||
|         scanf("%d", &number); | ||||
|          | ||||
|         if(number >= largest) { | ||||
|             largest = number; | ||||
|             ++counter; | ||||
|         } else { | ||||
|             ++counter; | ||||
|         } | ||||
|  | ||||
|  | ||||
|     } | ||||
|     printf("%s %d\n", "Counter: ",counter); | ||||
|     printf("%s %d\n", "Largest: ",largest); | ||||
|     printf("%s %d\n", "Number: ",number); | ||||
|  | ||||
|     return 0; | ||||
|  | ||||
| } | ||||
							
								
								
									
										5
									
								
								DeitelC/PsudocodeLargestNum.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								DeitelC/PsudocodeLargestNum.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| 1- Enter positive 10 integer | ||||
| 2- Create 3 different variable counter, number, largest | ||||
| 3- Counter checks 10 different num | ||||
| 4- number dynamicly changes(uses scanf) | ||||
| 5- largest hold biggest number | ||||
							
								
								
									
										17
									
								
								DeitelC/TabularOutput.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								DeitelC/TabularOutput.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| #include <stdio.h> | ||||
|  | ||||
| int main(void) { | ||||
|     int a = 7; | ||||
|  | ||||
|     while(a <= 35) { | ||||
|         printf("%d\t", a); | ||||
|             printf("%d\t", a+3); | ||||
|                 printf("%d\t", a+6); | ||||
|                     printf("%d\n", a*9); | ||||
|                     a+=7; | ||||
|                  | ||||
|              | ||||
|          | ||||
|     } | ||||
|  | ||||
| } | ||||
							
								
								
									
										17
									
								
								DeitelC/TabularOutputPower.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								DeitelC/TabularOutputPower.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| #include <stdio.h> | ||||
|  | ||||
| int main(void) { | ||||
|     int a = 1; | ||||
|  | ||||
|     while(a <= 10) { | ||||
|         printf("%d\t", a); | ||||
|             printf("%d\t", a*a); | ||||
|                 printf("%d\t", a*a*a); | ||||
|                     printf("%d\n", a*a*a*a); | ||||
|                     a++; | ||||
|                  | ||||
|              | ||||
|          | ||||
|     } | ||||
|  | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								DeitelC/a.exe
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								DeitelC/a.exe
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user