+ 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 Réponse
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]); }