Write an application that displays every integer value from 1-20along with its s
ID: 3608910 • Letter: W
Question
Write an application that displays every integer value from 1-20along with its squared value.I know this is an easy exercise but for some reason I cannot get itto work.
Please help.
I would post what I had but due to some strange error involvingcodeanalysis sal.h I need to repair my visual studios
but this is what I had for my previous exercise
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int n;
for(n=1; n<=20; n++)
cout<<n+<<endl;
getch();
}
i got 1-20 to display but now I need to get their squares to do thesame
i will rate well if you can help me