#include <iomanip>??
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#include <iostream>
#include <iomanip>
#include <conio>
int main()
{
cout<<"\n\t Multiplication Tables";
cout<<"\n______________________________________\n\n";
// print multiplication table for 1
for (int j=1; j<=10; j++)
{
cout<<setw(4)<<j*1;
}
cout<<endl;
//print multiplication table for 2
for (int j=1; j<=10; j++)
{
cout<<setw(4)<<j*2;
}
cout<<endl;
getch();
return 0;
}
|
Hi, may i know what is the usage of this library?
#include <iomanip>
Here, it is included so you can use the function setw.
Thanks...And the full name of that header is? Input Output Manipulation? Or something else? TQ...
Topic archived. No new replies allowed.