Write a C++ program to calculate cube of first 15 even numbers.
Answers
Answered by
2
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
for (int i=0;i<31;i++)
{if(i%2==0)
{cout<<i<<"\t"<<pow(i,3);}
}
}
Similar questions