9511_workbook

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