for (int counter = 1; counter < bilangan ; counter ++)
cout<< counter + 2 <<” ”<<endl;
What is the output if bilangan is 4 ?
1
Expert's answer
2021-07-03T04:46:13-0400
//What is the output if bilangan is 4 ?main(void)
{
int bilangan;
cout<<"\nEnter bilangan: "; cin>> bilangan ;
for (int counter = 1; counter < bilangan ; counter ++)
{
cout<<"counter = "<<counter+2<<endl;
}
return(0);
}
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments