funguje
This commit is contained in:
		
						commit
						a2371a5c8b
					
				
							
								
								
									
										29
									
								
								cv1/program.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								cv1/program.c
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,29 @@
 | 
				
			|||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int main(){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					printf("Enter the  text, please: ");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int c;
 | 
				
			||||||
 | 
					while(( c = getchar()) != EOF){
 | 
				
			||||||
 | 
					if( c >= 'a' && c <= 'z'){
 | 
				
			||||||
 | 
					    c = c - 32;
 | 
				
			||||||
 | 
					}else if( c >= 'A' && c <= 'Z'){
 | 
				
			||||||
 | 
					    c = c + 32;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					    if(c != '\n'){
 | 
				
			||||||
 | 
					        if(c >= 32 && c <=126){
 | 
				
			||||||
 | 
					            putchar(c);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        }else{
 | 
				
			||||||
 | 
					            putchar('\n');
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					    return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user