/* * File: main.cpp * Author: Lefteris Moussiades * * Created on October 10, 2018, 11:59 AM */ #include using namespace std; void prtHelloWorld() { cout << "Hello World!" << endl; } void prtComunicationDetails() { cout << "John Black" << endl; cout << "Saint John St 125" << endl; cout << "Norwich NR 7821" << endl; cout << "Great Britain" << endl; } void prtComunicationDetails2() { cout << "John Black" << endl << "Saint John St 125" << endl << "Norwich NR 7821" << endl << "Great Britain" << endl; } void prtComunicationDetails3() { cout << "John Black\nSaint John St 125\nNorwich NR 7821\nGreat Britain\n"; } void dataTypes() { int k; k=1; int j=2; cout << "k equals to " << k << endl; cout << "j equals to " << j << endl; char c='A'; cout << "c equals to " << c << endl; float f=32.5; double d=32.5; cout << "f = " << f << endl; cout << "d = " << d << endl; } void introToFor() { for (int i=0; i<10; i=i+1) cout << i << " "; cout << endl; } int main(int argc, char** argv) { //prtHelloWorld(); //prtComunicationDetails(); //prtComunicationDetails2(); //prtComunicationDetails3(); dataTypes(); //introToFor(); return 0; }