Madame Lorena reads your mind

I set myself the following additional goal: to use content from SimpleAdder and HelloFor to write a third program, which would interact with the user to 'read their mind', as in a bad joke I once heard. This was intended to reinforce understanding of the commands used in session 1.The level of this task was appropriate, as my only previous 'computing' experience is last year's MATLAB course. I took the user prompts of SimpleAdder ('cout' and 'cin') together with the counting of HelloFor, which I modified to reach a number implicitly specified by the use r, to create a program that could reconstruct a number from the outcome of a set calculation mentally followed by the user. My solution was in a file called Psychic.cc

// Psychic.cc tells user their favourite number by reading their mind... 

#include <iostream> 

using namespace std;

int main() 
{ 
        int f, r; 
         
        cout << "Madame Lorena will read your mind!" << endl; 
        cout << "Think of your favourite number of all integers smaller than 25." << endl; 
        cout << "Multiply it by three." << endl; 
        cout << "Add two." << endl; 
        cout << "Multiply by five." << endl; 
        cout << "Now subtract one." << endl; 
        cout << "Tell Madame Lorena the number you have found: "; 
        cin >> r; 
        f = ((r+1)/5 - 2)/3;
        cout << "Madame Lorena will identify your favourite integer." << endl; 
        cout << "We will start counting now." << endl; 
         
  for (int i=1; i<=f; i++) { 
    cout << i ; 
    if ( i == f ) { 
      cout << " Madame Lorena: I feel a strong connection... This is your favourite number!" << endl ; 
    } else { 
      cout << endl ; 
    } 
  } 
}