Code With NK
10 February 2022
String User Input
#include
<stdio.h>
int
main
()
{
char
str
[
40
];
printf
(
"Enter your name : "
);
scanf
(
"
%s
"
,
str
);
printf
(
"Your name is :
%s
"
,
str
);
return
0
;
}
OUTPUT-->
Enter your name : Nandkishor Your name is : Nandkishor
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment