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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!