WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2024 Poal.co

200

I did 5 in another thread, but that was NSFW. I decided to make a clean one with 7 programming languages.

If anyone is interested in programming and/or programming languages. This might be worth checking out. This is just to show for the most part.

A-Z = 1-26 - side note: either upper or lower case

plus sign or + = 27

hash sign or # = 28

Used this for numbers.

http://1.bp.blogspot.com/-0At4ra_Bro8/TlxKun4yfxI/AAAAAAAAAC8/qCfGAkrbBBI/s640/a1b2c3.jpg


This is to show variables in 7 programming languages though. edit - 8 programming languages (Fortran in comments).

This is C++, Java, PHP, Javascript, C, Python, and C# (edit - Fortran in the comments).


https://www.w3schools.com/cpp/cpp_variables.asp

https://www.onlinegdb.com/online_c++_compiler

C++

3 + 27 + 27 = 57

#include <iostream>
using namespace std;

int main() {
int x = 3;
int y = 27;
int z = 27;
int sum = x + y + z;
cout << sum;
return 0;
}

https://www.w3schools.com/java/java_variables.asp

https://www.jdoodle.com/online-java-compiler/

Java

10 + 1 + 22 + 1 = 34

public class MyClass {
public static void main(String[] args) {
int w = 10;
int x = 1;
int y = 22;
int z = 1;
System.out.println(w + x + y + z); 
}
}

https://www.w3schools.com/php/phptryit.asp?filename=tryphp_var

PHP

16 8 16 = 40

<!DOCTYPE html>
<html>
<body>

<?php
$x = 16;
$y = 8;
$z = 16;
echo $x + $y + $z;
?>

</body>
</html>

https://www.w3schools.com/js/js_variables.asp

Javascript

10 + 1 + 22 + 1 + 19 + 3 + 18 + 9 + 16 + 20 = 119

<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
var q = 10;
var r = 1;
var s = 22;
var t = 1;
var u = 19;
var v = 3;
var w = 18;
var x = 9;
var y = 16;
var z = 20; 
var total = q + r + s + t + u + v + w + x + y + z;
document.getElementById("demo").innerHTML =
"The total is: " + total;
</script>

</body>
</html>

C - since C is one letter and it's the last one. Going to add up the other 4 in this one.

https://www.tutorialspoint.com/compile_c_online.php

top four

57 + 34 + 40 + 119 = 250

x4 = 1000

   #include <stdio.h>

   // Variable declaration:
   extern int a, b, c, d;
   extern int e;
   extern int w;

   int main () {

   /* variable definition: */
   int a, b, c, d;
   int e;
   int w; 

   /* actual initialization */
   a = 57;
   b = 34;
   c = 40;
   d = 119;

   e = a + b + c + d;
   printf("value of e : %d \n", e);

   w = e * 4;
   printf("value of w : %d \n", w);

   }

https://www.onlinegdb.com/online_python_compiler

https://www.w3schools.com/python/python_variables.asp

Python

16 + 25 + 20 + 8 + 15 + 14 = 98

 u = 16
 v = 25
 w = 20
 x = 8
 y = 15
 z = 14
 print(u + v + w + x + y + z)

https://www.tutorialspoint.com/compile_csharp_online.php

https://www.tutorialspoint.com/csharp/csharp_variables.htm

C#

3 + 28 = 31

  using System;

  namespace VariableDefinition {

  class Program {

  static void Main(string[] args) {
     short a;
     int b ;
     double c;

     /* actual initialization */
     a = 3;
     b = 28;
     c = a + b;
     Console.WriteLine("a = {0}, b = {1}, c = {2}", a, b, c);
     Console.ReadLine();
   }
   }
   }

This is just for fun and I wanted to show people in case they were interested in programming languages. Let me know if I got anything wrong.


Jesus Christ is Lord and Savior - My religious side and/or spiritual side.

I did 5 in another thread, but that was NSFW. I decided to make a clean one with 7 programming languages. If anyone is interested in programming and/or programming languages. This might be worth checking out. This is just to show for the most part. A-Z = 1-26 - side note: either upper or lower case plus sign or + = 27 hash sign or # = 28 Used this for numbers. http://1.bp.blogspot.com/-0At4ra_Bro8/TlxKun4yfxI/AAAAAAAAAC8/qCfGAkrbBBI/s640/a1b2c3.jpg --- This is to show variables in 7 programming languages though. edit - 8 programming languages (Fortran in comments). This is C++, Java, PHP, Javascript, C, Python, and C# (edit - Fortran in the comments). --- https://www.w3schools.com/cpp/cpp_variables.asp https://www.onlinegdb.com/online_c++_compiler C++ 3 + 27 + 27 = 57 #include <iostream> using namespace std; int main() { int x = 3; int y = 27; int z = 27; int sum = x + y + z; cout << sum; return 0; } --- https://www.w3schools.com/java/java_variables.asp https://www.jdoodle.com/online-java-compiler/ Java 10 + 1 + 22 + 1 = 34 public class MyClass { public static void main(String[] args) { int w = 10; int x = 1; int y = 22; int z = 1; System.out.println(w + x + y + z); } } --- https://www.w3schools.com/php/phptryit.asp?filename=tryphp_var PHP 16 8 16 = 40 <!DOCTYPE html> <html> <body> <?php $x = 16; $y = 8; $z = 16; echo $x + $y + $z; ?> </body> </html> --- https://www.w3schools.com/js/js_variables.asp Javascript 10 + 1 + 22 + 1 + 19 + 3 + 18 + 9 + 16 + 20 = 119 <!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var q = 10; var r = 1; var s = 22; var t = 1; var u = 19; var v = 3; var w = 18; var x = 9; var y = 16; var z = 20; var total = q + r + s + t + u + v + w + x + y + z; document.getElementById("demo").innerHTML = "The total is: " + total; </script> </body> </html> --- C - since C is one letter and it's the last one. Going to add up the other 4 in this one. https://www.tutorialspoint.com/compile_c_online.php top four 57 + 34 + 40 + 119 = 250 x4 = 1000 #include <stdio.h> // Variable declaration: extern int a, b, c, d; extern int e; extern int w; int main () { /* variable definition: */ int a, b, c, d; int e; int w; /* actual initialization */ a = 57; b = 34; c = 40; d = 119; e = a + b + c + d; printf("value of e : %d \n", e); w = e * 4; printf("value of w : %d \n", w); } --- https://www.onlinegdb.com/online_python_compiler https://www.w3schools.com/python/python_variables.asp Python 16 + 25 + 20 + 8 + 15 + 14 = 98 u = 16 v = 25 w = 20 x = 8 y = 15 z = 14 print(u + v + w + x + y + z) --- https://www.tutorialspoint.com/compile_csharp_online.php https://www.tutorialspoint.com/csharp/csharp_variables.htm C# 3 + 28 = 31 using System; namespace VariableDefinition { class Program { static void Main(string[] args) { short a; int b ; double c; /* actual initialization */ a = 3; b = 28; c = a + b; Console.WriteLine("a = {0}, b = {1}, c = {2}", a, b, c); Console.ReadLine(); } } } --- This is just for fun and I wanted to show people in case they were interested in programming languages. Let me know if I got anything wrong. --- Jesus Christ is Lord and Savior - My religious side and/or spiritual side.

(post is archived)

[–] 1 pt

You can claim it on /s/subrequest after you become eligible.