i have written a program that when three integer is entered , it print their sum , product , average , smallest and a largest , so i want help on how can i make it print those in a table form ?
// modify showpoint flag
#include <iostream>
usingnamespace std;
int main () {
signedint p, z, n;
p=1;
z=0;
n=-1;
cout << showpos << p << '\t' << z << '\t' << n << endl;
cout << noshowpos << p << '\t' << z << '\t' << n << endl;
return 0;
}
The execution of this example displays something similar to:
+1 +0 -1
1 0 -1
i am trying to use this but it seems to be complected