All pastes #795681 Raw Edit

Untitled

public cpp v1 · immutable
#795681 ·published 2007-11-24 09:41 UTC
rendered paste body
<?php$thenum = $argv[1];echo 'Number is '.$thenum."\xD\xA";$line=0;while($thenum != 1) {	if(($thenum%2)==1) {		$thenum=($thenum*3)+1;		} else {			$thenum=$thenum/2;		}		echo $thenum."\xD\xA";	}		?>==================================================#include <iostream>using namespace std;int main( int argc, const char* argv[] ) {	int thenum = (int)argv[1];		cout << "Number is: " << thenum << endl;		 		 while(thenum != 1) {		 			  if((thenum%2)==1) {					  					thenum=(thenum*3)+1;										} else {										  	   thenum=thenum/2;											   }											    cout << thenum << endl;											    												}}