C program to get string from user and print.

#include<stdio.h>
#include<conio.h>
int main()
{
    char str[20];
    printf("Enter your first name: ");
    scanf("%s", str);
    printf("%s", str);
    getch();
    return 0;
}
C program to get string from user and print. C program to get string from user and print. Reviewed by on December 25, 2019 Rating: 5

No comments:

Powered by Blogger.