I/O string
#include <stdio.h>
int main() {
// Write C code here
char str[34];
printf(" Enter a string : ");
scanf("%s",&str);
printf("You have entered %s",str);
}
//*******
#include <stdio.h>
int main() {
// Write C code here
char str[34];
printf(" Enter your name : ");
scanf("%s",str);
printf("You name is %s",str);
return 0;
}
Comments
Post a Comment