Public feed #381553

Mine

public cpp v1 · immutable
Raw Edit
·published 2007-03-04 22:47 UTC
rendered paste body
// Proggy to determine if the entered number is odd or even// Il'z own productions#include <iostream>using std::cout;using std::cin;using std::endl; int main(){ 	int num;	int mod;		cout << "Please enter a number ";	cin >> num;	mod = num % 2;	if ( mod == 0 )		cout << "This number is even\n";	else		cout << "This number is odd\n";		return 0;}