Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

If you give me code without comments...

Name: your.friend 2007-09-26 23:58 ID:ZWlqE/ti

I'LL BREAK YOUR FUCKING FACE!!!!11111

NO TROLL.

Name: Anonymous 2007-09-27 1:10 ID:XSTmPQR/

#include <iostream>

int far ( int x )
{
 return (x-32)*(5/9);
}

int cel ( int x )
{
 return x+32*(9/5);
}

using namespace std;

int faren();

int cels();

int main ()
{
  int input;
 
  cout<<"1. Celsius to Fahrenheit\n";
  cout<<"2. Fahrenheit to Celsius\n";
  cout<<"Selection: ";
  cin>> input;
  switch ( input ) {
  case 1:           
    cels();
    break;
  case 2:           
    faren();
    break;
  default:           
    cout<<"Error\n";
    break;
  }

int faren {
 
  int x; 
  cout << "Temperature Farenhieht:";
  cin>> x;
  cin.ignore();
  cout << "Celsius:" << far(x);
  cin.get();
  }
 
int cels(){
  int x; 
  cout << "Temperature Celsius:";
  cin>> x;
  cin.ignore();
  cout << "Fahrenheit:" << cel (x);
  cin.get();
  }

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List