
Patrick B. answered 07/01/21
Math and computer tutor/teacher
#include <stdio.h>
int main()
{
int N=-1;
int iLoop;
while (N<0)
{
printf(" Input the postiive integer :>");
scanf("%d",&N);
}
for (iLoop=1; iLoop<=N; iLoop++)
{
if (iLoop%3==0)
{
printf(" %d is divisible by 3 and %d cubed is %ld \n",iLoop,iLoop,iLoop*iLoop*iLoop);
}
}
}