Computer Science, asked by abiolaoladipupo23, 1 year ago

Write a c program that ask a user to input his or her name

Answers

Answered by sweetmadhu29
0

#include <stdio.h>

int main ()

{

  char yourname;

   printf("Whats your name?\t");

   scanf("%c",&yourname);

}

Answered by Aishwarya98
0

#include<stdio.h>

#include<conio.h>

int main()

{

char str[1000];

printf("Enter your name:");

scanf("%[^\n]*c",str);    //to accept the string with spaces

return 0;

}


Aishwarya98: mark me as brianliest..
Aishwarya98: brainliest mark please..
Similar questions