View Code of Problem 25

#include<stdio.h>
main()
{
  int t;
  char c;
  scanf("%d",&t);
  while(scanf("%c",&c)!EOF)
    printf("%c",c+32):
}

/*
Main.c:2:1: warning: return type defaults to 'int'
 main()
 ^
Main.c: In function 'main':
Main.c:7:23: error: expected ')' before '!' token
   while(scanf("%c",&c)!EOF)
                       ^
Main.c:8:22: error: expected ';' before ':' token
     printf("%c",c+32):
                      ^
*/

Double click to view unformatted code.


Back to problem 25