Is that provided code implemented with all the functionalities given in question?.I think,last 2 functionalities are not implemented in the code...can you please confirm back to me.
Thanks,
//Please provide tthe full question
#include <stdio.h>
int main()
{
int i,n;
printf("Enter number of terms: ");
scanf("%d", &n);
for(i=1;i<=n;i++)
{
printf("Number is : %d and cube of the %d is :%d \n",i,i, (i*i*i));
}
return 0;
}
Comments
Leave a comment