You are on page 1of 2

# Dietel and Dietel Exercise Solution 1.

37
============================================
#include<iostream.h>
#include<conio.h>
void main ()
{
//clrscr();

int value=0;
cout<<" \tnumber\t"<<"\tsquare\t"<<"\tcube\t";
cout<<endl;
cout<<"\t"<<value<<"\t"<<"\t"<<value*value<<"\t"<
<"\t"<<value*value*value<<endl;
value=value+1;
cout<<"\t"<<value<<"\t"<<"\t"<<value*value<<"\t"<
<"\t"<<value*value*value<<endl;
value=value+1;
cout<<"\t"<<value<<"\t"<<"\t"<<value*value<<"\t"<
<"\t"<<value*value*value<<endl;
value=value+1;
cout<<"\t"<<value<<"\t"<<"\t"<<value*value<<"\t"<
<"\t"<<value*value*value<<endl;
value=value+1;
cout<<"\t"<<value<<"\t"<<"\t"<<value*value<<"\t"<
<"\t"<<value*value*value<<endl;
value=value+1;
cout<<"\t"<<value<<"\t"<<"\t"<<value*value<<"\t"<
<"\t"<<value*value*value<<endl;
value=value+1;
cout<<"\t"<<value<<"\t"<<"\t"<<value*value<<"\t"<
<"\t"<<value*value*value<<endl;
value=value+1;
cout<<"\t"<<value<<"\t"<<"\t"<<value*value<<"\t"<
<"\t"<<value*value*value<<endl;
value=value+1;
cout<<"\t"<<value<<"\t"<<"\t"<<value*value<<"\t"<
<"\t"<<value*value*value<<endl;
value=value+1;
cout<<"\t"<<value<<"\t"<<"\t"<<value*value<<"\t"<
<"\t"<<value*value*value<<endl;
value=value+1;
cout<<"\t"<<value<<"\t"<<"\t"<<value*value<<"\t"<
<"\t"<<value*value*value<<endl;
//getch();
}

http://www.ravianeducation.blogspot.com
FARHAN: 03008855006