2 The programming code samples – Flash

Last updated on October 31st, 2020 at 09:02 am.

cpp Java and Js code samples

This is the second part of the Intro to programming course . In this part lets show beginners, some code samples.

The samples are for C++ , Java and Javascript .

This shows a simple piece of code that adds Two and Two and then subtracts Two (ie 2+2-2) .

If you are interested in this course you can join it using the link here.

C++ sample

#include <iostream>
using namespace std;
int main ()
{
 cout << (2 + 2 - 2);
 return 0;
}

Java Sample

public class Demo{
 public static void main(String[] args){
 System.out.println(2 + 2 - 2);
 }

}

Javascript Sample

alert (2 + 2 - 2) ;

Watch the full Introduction to Programming  Here >>

To learn more about Programming, click the button below.

Comment Here

Need WordPress help? Linux Server help? Talk to us.

  • We are your own WordPress customer service.
  • We set up Linux servers and install or migrate WordPress. Learn more here.
  • We support WooCommerce too.
  • Check out our WordPress customer support plans here or contact us below .

If you have any questions regarding WordPress support, Linux server support or any of our services, feel free to reach out or read more on our services page.

Join this free course:

How to host multiple WordPress
websites on a VPS

Close me!