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")
Subscribe to:
Post Comments (Atom)
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...
-
First program Display Hello World in the terminal C++ #include <iostream> using namespace std; int main() { cout...
-
while iterative statement Set of statements can be executed repeatedly until a condition is met. C++ Python Synta...
-
if conditional statement A condition is checked and execute statement/block of statements if the condition is true. C++ ...
No comments:
Post a Comment