top
■ ■
Unwavering Resolve
Who are you, beneath the surface, when no one's looking?

Taking Commissions
Current Workload: 3
#c++ #code #programming #I think this is how you differentiate even and odd numbers? #-shrugs-
Posted 10 months ago with 4 notes

#include <iostream>
#include <conio.h>
using namespace std;

int num;

main()
{

cout«”Enter number: “«endl;
cin»num»endl;

if (num%2==0)
     cout«”That is an even number.”
else
     cout«”That is an odd number.”;

  1. adven277 reblogged this from worldstopspinning and added:
    I use Microsot Visual C++ 2010. Is yours updated? Because that might be the reason why. We’re studying the origins of...
  2. adven277 posted this