i mean that
i juz put the package as at declaration
for easy my work, i use no to help customer to choose the packages
that's y i cout<< "\n1-package A \n2- package B" ;
then i dun know what should i put in cin
You dont put things in cin. cin is a stream operator; you use it to extract elements from a stream.
As an aside, the language of your post will (in the general case) cause less people to respond seriously. 'Q' is not a suitable substitution for 'Question'; juz is not a word and should not be used in place of just; randomly dropping letters is not appropriate. This is, of course, only my opinion - you can feel free to discard it as you see fit.
using namespace std;
cout<<"Choose a package: 1 = Package A, 2 = Package B\n";
cin>>Package; //This is how u get the user choice..
if(Package == '1') //I guess u mean split choice by if and else meaning if this then... else...
else if(Package == '2') //The If and else statement will let do something depending on the choice made.
Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...