+ 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 Réponse