Constants C++ Program

#include <iostream>

using namespace std;

int main() {

  // Declaring and Initializing Constants
  const int con1 = 5;
  const int con2 = 12;

  // Printing Constants
  cout << "First Constant = " << con1 << "\n";
  cout << "Second Constant = " << con2;

  return 0;
}

Comments

Popular posts from this blog

Kotlin Math Operations and Functions Overview

Kotlin Strings: Features and Operations Guide

Kotlin Android Program (QCR) Application Codes That Read Text in Photos