+ 1

character

we have the text and we want if watch the word RAJAB out put been yes and if no out put print nn how coding for this problem

22nd Nov 2020, 5:20 AM
mohamad yavari
mohamad yavari - avatar
8 Respuestas
+ 10
First of all you have to mention your programming language in the question.. Hint : if comparison of text with rajab ==0 print yes else print no Try it yourself ,this is the simplest u can solve.....
22nd Nov 2020, 6:01 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 3
Your question isn't clear.
22nd Nov 2020, 5:59 AM
Misbah Ahmed
Misbah Ahmed - avatar
+ 2
I'm lost please clarify your question
22nd Nov 2020, 6:30 AM
Sudo
Sudo - avatar
+ 2
I suggest you to use fgets () to read the sentence and strstr() to find rajab
22nd Nov 2020, 12:00 PM
Davide
Davide - avatar
+ 1
Amir Hussein suffered very early in the Corona era. As a fan of his author's program, you want to give him the program for the name of Rajab finder to filter the ‘Rajab’s and show the place that shows. Nature The first thing your program should do is determine if it is in the text. Entrance In the first line of the number input n n is given the length of the string In the second line the length of the text input Output If rajab was in the text, print yes. Otherwise print NO.
22nd Nov 2020, 8:40 AM
mohamad yavari
mohamad yavari - avatar
+ 1
Sample input 11 hellorajabi Sample output YES
22nd Nov 2020, 8:41 AM
mohamad yavari
mohamad yavari - avatar
+ 1
hi
22nd Nov 2020, 10:08 PM
marwan Ali Saleh Al-matri