fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(){
  5. int k=0,i,j;
  6. char a[1000][75];
  7. scanf(" %[^\n]s",a[k]);
  8. while(1){
  9. k++;
  10. scanf(" %[^\n]s",a[k]);
  11. if(strcasecmp(a[k],"the end!")==0)break;
  12. }
  13. for(i=0;i<=k;i++){
  14. if(strcasecmp(a[i],"the end!")!=0){
  15. for(j=0;j<strlen(a[i]);j++)
  16. printf("%c",toupper(a[i][j]));
  17. }
  18. if(i<k&&strcasecmp(a[i+1],"the end!")!=0)printf("\n");
  19. }
  20.  
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0s 10320KB
stdin
Within software engineering, programming (the implementation)
is regarded as one phase in a software development process.
There is an ongoing debate on the extent to which the writing
of programs is an art, a craft or an engineering discipline.


the end!








stdout
WITHIN SOFTWARE ENGINEERING, PROGRAMMING (THE IMPLEMENTATION)
IS REGARDED AS ONE PHASE IN A SOFTWARE DEVELOPMENT PROCESS.
THERE IS AN ONGOING DEBATE ON THE EXTENT TO WHICH THE WRITING
OF PROGRAMS IS AN ART, A CRAFT OR AN ENGINEERING DISCIPLINE.