snippet1

    0

    0

    yrgdro999

    The code includes the standard input and output library, printf(), and the scanf() function. The program prints "Name?" and then reads in a character and prints it followed by "hello" for the input character.

    #include <stdio.h>
    
    int main() {
      char name;
      printf("Name?");
      scanf("%c", &name);
      
      
      printf("hello %c ", name);
      
      
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.