0

Why is the code not working?

#include <iostream> using namespace std; main ()  { int  number[15] ;  int elmenumb =0 ; for (int i =0 ;i < 15 ; i++)  {   elmenumb = 1 + i ;   cout <<"input" << elmenumb<< "Element:" ;   cin >> number[i];  }  for(int i = 0; i <15 ; i++)   cout << number [i ] << " ";  }

14th May 2022, 1:33 PM
شنو منو
3 ответов
+ 2
What is your problem with the code? edit: شنو منو do you got this code from any net source? it has invalid characters at empty places. remove those or rewrite entire code.
14th May 2022, 1:48 PM
Jayakrishna 🇮🇳
0
Yes, it is from an external source, but I do not know the solution. I hope someone can help me solve this issue
14th May 2022, 2:33 PM
شنو منو
0
As I already told, solution is only rewrite code or remove those invalid invisible characters and add spaces back on need. Try it and see. and use int main(), not just main()
14th May 2022, 2:50 PM
Jayakrishna 🇮🇳