Please help me in this code... 3 taste case are running successfully but remaining two are not 😐😐😐 ...
Task: Create a program that parses through a link, extracts and outputs the YouTube video ID. Input Format: A string containing the URL to a YouTube video. The format of the string can be in "https://www.youtube.com/watch?v=kbxkq_w51PM" or the shortened "https://youtu.be/KMBBjzp5hdc" format. Output Format: A string containing the extracted YouTube video id. Sample Input: https://www.youtube.com/watch?v=RRW2aUSw5vU Sample Output: RRW2aUSw5vU Here is my attempt :- #include <stdio.h> #include <string.h> int main() { char str[200]; int i,j; int count=0; scanf("%s",str); for(i=0;i<strlen(str);i++) { if(str[i]=='=') { i++; for(j=i;j<strlen(str);j++) { printf ("%c",str[j]); } break; } else if(str[i]>=65 && str[i] <= 91) { for(j=i;j<strlen(str);j++) { printf ("%c",str[j]); } break; } } return 0; }