How to take input like this. Take N no of string values | Sololearn: Learn to code for FREE!
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]); }

18th Aug 2019, 5:58 PM
Geek
Geek - avatar
0 Answers