Thursday, November 30, 2017

First C++ and Python program

First program

Display Hello World in the terminal

C++

#include <iostream>
using namespace std;
int main()
{
        cout<<"Hello World"<<endl;
        return 0;
}

Python


print("Hello World")

No comments:

Post a Comment

Iterative statements in C++ and Python (Part 2)

for loop iterative statements Executing set of statements using for iterative statement in C++ and Python is quite different. First, l...