Programming in C & C++
  • C++ program using string?
  • C ++ program with else if?
  • C++ program using strinf function in else if?
  • Decision making statement in c++?
  • Declaring variable name as string in C++?
  • Getting input value in C++?
  • Interactive program using c++?
C++ Program to check our mental health (therapist):

We are going to create a program which checks our mental health after a hectic day at our daily life and responds according to it .

Step 1:

First we must use the header file and declare the variable we are going to use.


Wittty Technologies
Step 2:

After declaring,Assign the output and input variables.


Wittty Technologies
Output:

Wittty Technologies
Step 3:

We are using the else if statement for this program.The Code will respond a particular sentence according to your inputting mood.


Wittty Technologies
Output:

Wittty Technologies