🔒 Closed C language help !

Status
Not open for further replies.

Roi-

Fanatic
mga kuya/ate pa help naman mo, need ko po ng code ng c language ganto po yung problem:

"Create a program that will accept two strings values. the program must be able to determine the longest common prefix of the two words. terminate input if "end" is entered:

sample output:

Enter first word : glossary
Enter second word: global
Longest prefix is glo

Enter first word : end
End of program! ""

sana po ma help nyo po kami, maraming thankies poooO~ ! HEHEHE <3 <3
 
madali lang sana wala kasi akong laptop.

pero logic niyan loop to compare first character at index 0 of the first string to the first character at index 0 of the second string

gamitan ng conditional statement to break the loop using match string regardless of case sensitivty like string1 or string2 either one of those variables that matches exactly with the string "end"
 
Status
Not open for further replies.

About this Thread

  • 1
    Replies
  • 469
    Views
  • 2
    Participants
Last reply from:
FreeAllYouCan-OFFICIAL

Trending Topics

Online now

Members online
1,078
Guests online
834
Total visitors
1,912

Forum statistics

Threads
2,274,955
Posts
28,959,562
Members
1,233,493
Latest member
Alluneediswalk
Back
Top