Solved programming problem

How to Scan and Print a Massage in C.

Source code

#include <stdio.h>

int main()

{

    char str[100];

    int i=0;

    printf("Please Enter a Massage: ");

    gets(str); ///scan string

    printf("Your Massage: ");

    puts(str);///printing

    return 0;

}

Output

Please Enter a Massage: Code To Haven


Your Massage: Code To Haven

 

Join the discussion

Add your comment