#include<iostream>
using namespace std;
int main()
{
    int x=50,y=70,z=80,a;
    cout.width(20);
    cout.setf(ios::internal);
    cout<<"Total items"<<endl;
    cout<<"No.of pencils : ";
    cout.width(6);
    cout<<x<<endl;
    cout<<"No.of erasers : ";
    cout.width(6);
    cout<<y<<endl;
    cout<<"No.of sharpner: ";
    cout.width(6);
    cout<<z<<endl;
    a=x+y+z;cout
    cout.setf(ios::internal)
    cout
    cout<<"Total no.of items : ";
    cout.width(6);
    cout<<a<<endl;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: