Answer:
im 13 and im a girl wassup
Explanation:
Answer:
do{
cout<<"Introduce number \n"; //print the message
cin>>num; //set the value of the number given
}while(num<1 || num>10); //repeat while the number is out of the range
cout<<"Number: "<<num; //print the number
Explanation:
The idea behind this code is to create a loop in which I can compare the number given (between 1 and 10) and then print the number or get back and ask the number again.
#include <iostream>
using namespace std;
int main()
{
int num; //create num variable
do
{
cout<<"Introduce number \n"; //print the message
cin>>num; //set the value of the number given
}while(num<1 || num>10); //repeat while the number is out of the range
cout<<"Number: "<<num; //print the number
}
Answer:
The main difference between the c and the C++ programming language are as follows:
- The C language is the type of procedure programming language and on the other hand, C++ is the combination of object oriented (OOPS) and the procedure programming language.
- The C programming language does not support any type of object and class in the system. While the C++ programming language is also known as hybrid programming language.
- The C programming language does not support any type of operator overloading and function. On the other hand, the C++ programming language supported both the function overloading and the function.