#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{ float shirts,rate=12,cost,total_price,disc;
cout<<"WELCOME TO THE HOME OF C PLUS PLUS"<<endl;
cout<<"How many shirts would you like:"<<endl;
cin>>shirts;
cost=rate*shirts;
cout<<"The cost of shirts are:"<<cost<<endl;
if(shirts>=5)
{
disc=(cost*10)/100;
cout<<"Discount:"<<disc<<endl;
total_price=cost-disc;
...
Subscribe to:
Posts (Atom)