View Single Post
  #14 (permalink)  
Old Sep 5th, 2007, 17:41
testep02 testep02 is offline
New Member
Join Date: Aug 2007
Location: Pikeville
Age: 26
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: tried java now c++

The answer that you are looking for is:

#include <iostream>
using namespace std;

Code: Select all
 
int main()
{
    int var1 = 1;
    int var2 = 2;
 
    if( var1 == 1 && var2 == 2 )
    {
        cout << "The variables are:" << var1 <<  ",  " << var2;
    }
 
return 0;
}
Reply With Quote