For Daily Free Study Material Join wiredfaculty Whatsapp Group | Download Android App | Ncert Book Download
Sponsor Area
Find and write the output of the following C++ program code:Note: Assume all required header files are already being included in the program.
void main() { int A[]={10,12,15,17,20,30}; for(int i = 0; i<6; i++) { if(A[i]%2==0) A[i] /= 2; else if(A[i]%3==0) A[i] /= 3; if(A[i]%5==0) A[i] /=5; } for(i = 0; i<6; i++) cout<<A[i]<<'#'; getch(); }