The following program keeps reading error . And Imust also modify it to write ou
ID: 3618853 • Letter: T
Question
The following program keeps reading error. And Imust also modify it to write out a table with their correspondinginteger values.//This program calculates and prints a table of square from0-99
//I calculate and print a table of squares 0-99
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int i= 0; //start from 0
while (i<100) { //the loopcondition testing the variable i
cout << i<< ''<< square(i)<<' ' ; // is for a tab, for a new line
++i ; // increment the loop variable i ( that is, ibecomes i+1)
}
return 0;
}
Explanation / Answer
please rate - thanks //I calculate and print a table of squares 0-99 #include #include using namespace std; int main() { int i= 0; //start from 0 coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.