#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c,d,e;
cout<<"Enter the range below "<<"\n";
cout<<" from -- ";
cin>>a;
cout<<" to -- ";
cin>>b;
for (int i=a;i<=b;i++)
{ c=i*i;
cout<<i<<"^2 = "<<c<<"\n";
}
getch();
}
#include<conio.h>
void main()
{
clrscr();
int a,b,c,d,e;
cout<<"Enter the range below "<<"\n";
cout<<" from -- ";
cin>>a;
cout<<" to -- ";
cin>>b;
for (int i=a;i<=b;i++)
{ c=i*i;
cout<<i<<"^2 = "<<c<<"\n";
}
getch();
}
No comments:
Post a Comment