Thursday, September 13, 2018

DISPLAY YOUR NAME


  • Problem Description

    Write a program to get a string and print it.
  • CODING ARENA
  • #include <stdio.h>
    int main()
    {
      char a[20];
      scanf("%s",a);
      printf("Your name is:%s",a);

    return 0;
    }
  • Test Case 1

    Input (stdin)
    SRMUniversity
    
    
    Expected Output
    Your name is:SRMUniversity
  • Test Case 2

    Input (stdin)
    ramesh
    
    
    Expected Output
    Your name is:ramesh

No comments:

Post a Comment