Question:
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]<<"#";
}
C. Sir| Created: 8-Jan-2019 | Updated: 22-Mar-2026|CBSE12D-2017
