Here is my little code
Code: Select all
//G-sparkz little billing Pack Devoloped
#include<iostream>
using namespace std;
int main()
{
    int Paper,Quantity,Total;
    char Name[50];
    
    cout<<"Welcome to G-sparkZ Billing Pack"<<endl<<endl;
    
    cout<<"Please enter your name"<<endl;
    cin>>Name;
    cout<<Name <<" entered the G-SparkZ Billing system "<<endl<<endl;
    
    cout<<"Paper size codes [ A4=4 A3=3 ] "<<endl<<endl;
    cout<<"Enter your paper size code ";
    cin>>Paper;
    
    if(Paper==4)
    Paper=5;
    else if (Paper==3)
    Paper=10;
    else
    cout<<"wronge paper";
    
    cout<<"How many pages ";
    cin>>Quantity;
    
    cout<<"paper - A"<<Paper<< " Pages - "<< Quantity<<endl;
    
    Total=Paper*Quantity;
    
    cout<<"Total price - "<<Total<<endl;
    
    system("pause");
    }
1.I wanna stop my program if user input wrong paper code.
2.I wanna make some empty lines after "how many pages line"& after entering my name G-sparkZ.



