I want to call the input function, which works when I run it, but then I want to display the "temp" and "windspeed" variables in the main function and I don't know how to do this, im looking online at tutorials but im still confused. I guess I shouldn't have missed class last week :(
Any help is appreciated, thanks!
//function example
#include <iostream>
#include <cmath>
using namespace std;
int input();
int main ()
{
input();
return 0;
}
int input ()
{
int temp, windspeed;
cout << "Enter the temperature: ";
cin >> temp;
cout << "\nEnter the windspeed: ";
cin >> windspeed;
return (temp);
}