Professional Documents
Culture Documents
1. (1) Write a single statement to assign 0 to variable total, subtotal, average, tax and shipping
Total=stotal=ave=tax=shipping=0.0
3. (2) Write an input validation loop that ask user to enter integer between 10 through 25
Else
again=0;
4. (2) Write your name and passport number to a file called students.txt
6. (4) Void addThree( int &, int &, int &, int &)
The above statement is a prototype. Write a function which
sum = ( num1+num2)*2+num3;
Answer :
Void sumit( int &sum, int&n1, int &n2, int &num3)
{
Sum=( n1+n2)*2+num3;
}