topical media & game development
basic-program-code-02-Ex2-12CLR.c
? /
basic-program-code-02-Ex2-12CLR.c
// Ex2_12.cpp : main project file.
include <stdafx.h>
using namespace System;
int main(array<System::String ^> ^args)
{
int apples, oranges; // Declare two integer variables
int fruit; // ...then another one
apples = 5; oranges = 6; // Set initial values
fruit = apples + oranges; // Get the total fruit
Console::WriteLine(L"\nOranges are not the only fruit...");
Console::Write(L"- and we have ");
Console::Write(fruit);
Console::Write(L" fruits in all.\n");
return 0;
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.