Write a c program that ask a user to input his or her name
Answers
Answered by
0
#include <stdio.h>
int main ()
{
char yourname;
printf("Whats your name?\t");
scanf("%c",&yourname);
}
Answered by
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..
Similar questions