]> web.ist.utl.pt Git - iaed.git/commitdiff
Fix aula02/ex11.
authorAlexandre P Francisco <aplf@tecnico.pt>
Tue, 23 Feb 2016 12:02:25 +0000 (12:02 +0000)
committerAlexandre P Francisco <aplf@tecnico.pt>
Tue, 23 Feb 2016 12:02:25 +0000 (12:02 +0000)
aula02/ex11.c

index 5218c30286280bffa9d2ab2438e9d0de810c5110..9dc219a4f3c9235be4596df7542e97a7e75bd97a 100644 (file)
@@ -12,9 +12,9 @@ int main ()
     while ((c = getchar()) != EOF)
     {
         if (c >= 'a' && c<='z')
-            maiusculas++;
-        else if (c >= 'A' && c<='Z')
             minusculas++;
+        else if (c >= 'A' && c<='Z')
+            maiusculas++;
         else if (c >= '0' && c<='9')
             algarismos++;
         else