Update cv3/program.c
This commit is contained in:
		
							parent
							
								
									4cbd8c399f
								
							
						
					
					
						commit
						2bcce5a191
					
				| @ -46,6 +46,7 @@ int main() { | |||||||
|     int has_input = 0;  |     int has_input = 0;  | ||||||
| 
 | 
 | ||||||
|     while (1) { |     while (1) { | ||||||
|  |          | ||||||
|         if (!fgets(input, sizeof(input), stdin)) { |         if (!fgets(input, sizeof(input), stdin)) { | ||||||
|             break;  |             break;  | ||||||
|         } |         } | ||||||
| @ -111,7 +112,9 @@ int main() { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|      |      | ||||||
|     if (!has_input) { |     if (has_input) { | ||||||
|  |         printf("\n"); | ||||||
|  |     } else { | ||||||
|         printf("no input\n"); |         printf("no input\n"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user