I/O string

 #include <stdio.h>


int main() {

    // Write C code here

    char str[34];

    printf(" Enter a string : ");

    scanf("%s",&str);

    

    printf("You have entered %s",str);

    

}


//*******


#include <stdio.h>


int main() {

    // Write C code here

    char str[34];

    printf(" Enter your name : ");

    scanf("%s",str);

    

    printf("You name is  %s",str);

     return 0;

    

}




Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings