Question: How do I put a condition after the scanf(%s,input); line that outputs a specific message if a specific string was entered by the user? #includestdio.h
How do I put a condition after the "scanf("%s",input);" line that outputs a specific message if a specific string was entered by the user?
#include"stdio.h"
#include"string.h"
int main(){
char input[30];
while(1){
printf("input text : ");
scanf("%s",input);
printf(" ");
}
printf(" Good Bye! ");
return(0);
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
