New course! Every coder should learn Generative AI!
Try a free lesson+ 2
How to take input like this. Take N no of string values
Input: 3 Orange blue red int main(){ int a; char str[100]; scanf("%d\n",&a); for(int i=0;i<a;i++){ scanf("%s",&str[i]); }
0 Answers