Saturday, August 25, 2018

IO 13

  • Problem Description

    Write a program to read a character in upper case and then print it in lower case

    Input and Output Format:

    Refer sample input and output for formatting specification.

    All float values are displayed correct to 2 decimal places.

    All text in bold corresponds to input and the rest corresponds to output.
  • CODING ARENA
  • #include <stdio.h>
    int main()
    {
      char a,b;
      scanf("%c",&a);
      b=a+32;
      printf("%c",b);
      return 0;
    }
  • Test Case 1

    Input (stdin)
    P
    
    
    Expected Output
    p
  • Test Case 2

    Input (stdin)
    C
    
    
    Expected Output
    c

No comments:

Post a Comment