I need help with my homework....i have to write a program that inputs multiple lines of integer numbers and outputs them in an HTML table. The numbers should be printed 3 in a row, one number per column. And the last column is the sum. Input should stop when zero is entered. Zero shouldnt be output. Empty cells should be output to complete the table. and the last row should contain the sum of all numbers in each respective column and the total of all the numbers. I have started the code without the HTML tags but i have errors and it isn't working. this is what i have so far..... if anyone can help I would appreciate it. thanks
#include <iostream>
using namespace std;
int main() {
int input;
int InputCount=0;
int RowSize=2;
int ColumId = 0;
while((input <= -1)||(input >= 1));
{
cin>>input;
while (InputCount <= RowSize);
{
if (InputCount == 0);
ColumId =(InputCount % RowSize);
cout << ColumId << endl;
cout << input;
InputCount ++;
cin>>input;
if (input == 0);
cout << "done";
if (InputCount == 1);
ColumId =(InputCount % RowSize);
cout << ColumId << endl;
cout << input;
InputCount ++;
cin>>input;
if (input == 0);
cout << "done";
if (InputCount == 2);
ColumId =(InputCount % RowSize);
cout << ColumId << endl;
cout << input;
InputCount = 0;
cin>>input;
if (input == 0);
cout << "done";
}
}}