9511_workbook

solved exercises from algorithms & programming I (9511) prof. Cardozo
Index Commits Files Refs README
guia03/ex11.c (223B)
   1 #include <stdio.h>
   2 #include <ctype.h>
   3 
   4 int main(void) 
   5 {
   6     int i, aux;
   7     char str[] = "hello world";
   8 
   9     for(i = 0; aux = str[i]; i++)
  10         if((aux < 123) && (aux > 96))
  11             str[i] = (aux - 32);
  12 
  13     printf("%s\n", str);
  14     return 0;
  15 }