Display students details in the following format using manipulats
Rollno Name Marks average
------ --- ---- -------
1 Ram 490 98.17
2 Kala 450 96.23
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
cout << 1 << setw(7) << "Ram" << setw(5) << 490 << setw(8) << 98.17 << endl;
cout << 2 << setw(7) << "Kala" << setw(5) << 450 << setw(8) << 96.23 << endl;
return 0;
}
It is difficult to determine what exactly should be between the data distances, if you need to tweak a little, this is not a problem for me.
Comments
Leave a comment