Cpp Basic 31: Variable Constant

9 January 2020, 1:38 pm by antelove19

Cpp programming language

Cpp programming language



Happy Coding


main.cpp

/* ------------------------------------------------------------ */
/*  Variable                                                    */
/*  Using Constant                                              */
/*                                                              */
/*  Author: antelove                                            */
/*  Website: antelove.com                                       */
/* ------------------------------------------------------------ */

#include <iostream> // standar input output library

#define INT 10 // define constant

using namespace std;

int main()
{

    cout << "This is using constant: " << INT;

    return 0;

}

Thank for reading :)



No Action Title
1 Live
2 Editor
0 comment