WORLD OF COMPUTERS


 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Chapter 1.6: Constants

Go down 
AuthorMessage
Crash



Posts : 15
Join date : 2010-08-21

PostSubject: Chapter 1.6: Constants   Sat Aug 21, 2010 5:06 am

The constants will be explained in next tutorial.

Source code:
Quote :

#include <iostream>
using namespace std;

#define PI 3.14159

int main()
{
double radius = 5.0;
double circle;

circle = 2 * PI * radius;

cout << circle;
}
Back to top Go down
View user profile
 
Chapter 1.6: Constants
Back to top 
Page 1 of 1
 Similar topics
-
» Brealey Myers Allen 10e Chapter 19 Solution Pdf.rar
» Brealey Myers Allen 10e Chapter 19 Solution Pdf.rar

Permissions in this forum:You cannot reply to topics in this forum
WORLD OF COMPUTERS :: Computer Programming :: C++-
Jump to: