of     2   
chevron_rightchevron_rightchevron_right

felax
#15910565Tuesday, October 27, 2009 1:06 AM GMT

Module Module1 Sub Main() Dim A As Integer Dim B As Integer Dim C As Integer Dim E As Integer Dim F As Integer Dim G As Integer Dim H As Integer Dim I As Integer Dim J As Integer Dim K As Integer Console.WriteLine("enter number here") A = Console.ReadLine() Console.WriteLine("enter number here") B = Console.ReadLine() Console.WriteLine("enter number here") C = Console.ReadLine() Console.WriteLine("enter number here") E = Console.ReadLine() Console.WriteLine("enter number here") F = Console.ReadLine() Console.WriteLine("enter number here") G = Console.ReadLine() Console.WriteLine("enter number here") H = Console.ReadLine() Console.WriteLine("enter number here") I = Console.ReadLine() Console.WriteLine("enter number here") J = Console.ReadLine() Console.WriteLine("enter number here") K = Console.ReadLine() Dim D As Integer D = A + B + C + E + F + G + H + I + J + K D = D / 10 Console.WriteLine("The Product") Console.WriteLine(D) Console.ReadLine() End Sub End Module use this to add 10 numbers and divide them by 10 have fun
felax
#15910667Tuesday, October 27, 2009 1:07 AM GMT

o and if you ever need to use this use VB.Net
PurpleKiwi
#15911842Tuesday, October 27, 2009 1:27 AM GMT

... This doesn't belong in this forum.
level140roblox
#15912134Tuesday, October 27, 2009 1:31 AM GMT

That is one of the most inefficient codes I have ever seen.
PurpleKiwi
#15912276Tuesday, October 27, 2009 1:34 AM GMT

Sub blah() do MsgBox("BLAH!") loop End sub I haven't used VB in a long time, and I got some languages mixed up, so I don't know if that's how it goes.
FoodTests
#15913058Tuesday, October 27, 2009 1:48 AM GMT

Wow you suuure can program. That's tough stuff there.../sarcasm
phailbusreturns
#15914937Tuesday, October 27, 2009 2:37 AM GMT

#include "windows.h" int WINAPI WinMain(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { MessageBox(NULL,"Your programming is an epix phail.","Phail bus is here",MB_OK | MB_ICONEXCLAMATION); return 0; } //Ownt.
felax
#15915229Tuesday, October 27, 2009 2:46 AM GMT

the program works just how it needs to and btw you people need to learn more about programing because you clearly cant program
GoldenUrg
#15916109Tuesday, October 27, 2009 3:20 AM GMT

Now it's Lua. --Put in LocalScript --Module Module1 Console = {} function Console.WriteLine( msg ) local mb = Instance.new( "Message" ) mb.Parent = game.Players.CurrentPlayer mb.Text = msg delay( 5, function() mb:Remove() end ) end function Console.ReadLine() return game.Players.CurrentPlayer.Chatted:wait() end function Main() Console.WriteLine("enter number here") A = Console.ReadLine() Console.WriteLine("enter number here") B = Console.ReadLine() Console.WriteLine("enter number here") C = Console.ReadLine() Console.WriteLine("enter number here") E = Console.ReadLine() Console.WriteLine("enter number here") F = Console.ReadLine() Console.WriteLine("enter number here") G = Console.ReadLine() Console.WriteLine("enter number here") H = Console.ReadLine() Console.WriteLine("enter number here") I = Console.ReadLine() Console.WriteLine("enter number here") J = Console.ReadLine() Console.WriteLine("enter number here") K = Console.ReadLine() D = A + B + C + E + F + G + H + I + J + K D = D / 10 Console.WriteLine("The Product") Console.WriteLine(D) Console.ReadLine() end --End Module Main()
alexnewtron
#15916771Tuesday, October 27, 2009 3:47 AM GMT

Ahh Visual basic code :)!
TheSquirrel
#15918691Tuesday, October 27, 2009 7:57 AM GMT

Module Module1 Function WorkoutDigitWord(ByVal Word) Dim Digits() As String = {"ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX", "SEVEN", "EIGHT", "NINE"} For i = 0 To Len(Word) - 1 For n = 0 To 8 If Word(i) = Digits(n)(0) Then Digits(n) = Mid(Digits(n), 2) End If If Len(Digits(n)) = 0 Then Return n + 1 End If Next Next Return "NO" End Function Sub Main() Do Console.Write("Test Word: ") Console.WriteLine("{0}", WorkoutDigitWord(UCase(Console.ReadLine()))) Loop Until False End Sub End Module
felax
#15920928Tuesday, October 27, 2009 12:28 PM GMT

good job were did you find it or did you make it.
TheSquirrel
#15921133Tuesday, October 27, 2009 12:41 PM GMT

I wrote it to complete the first question in the Infomatik Olympiad test paper. The first question is called Digit Words and asks you to write a program that can return the numerical digit if it can be found in the word. You were never given a word that had to digits in it. Bounce *o*n*e - 1 Entering Bounce would return 1. Although there are the correct letters, Decode wouldn't return 1 as the letters aren't in the right order.
chris1989
#15921599Tuesday, October 27, 2009 1:12 PM GMT

Programming is scripting.
phailbusreturns
#15984713Wednesday, October 28, 2009 11:55 PM GMT

class DasAuto def failz() puts "You are a good programmer!!!" end end Auto = DasAuto.new Auto.failz()
BentLent98
#15985370Thursday, October 29, 2009 12:05 AM GMT

Uh, Isnt scripting the SAME THING!?
Vengroe
#15985817Thursday, October 29, 2009 12:13 AM GMT

Not exactly, scripting is programming, but programming isn't neccesarily scripting. Its like squares and rectangles, or circles and ovals.
gaius19
#15985835Thursday, October 29, 2009 12:14 AM GMT

Scripting is a HLL (Higher Level Language) while programming is just writing instructions, so scripting is programming, not the other way around. For example: 0E1FBA1301B409CD21E4602C8175FAB44CCD2148656C6C6F20576F726C64210D0D0A24 Isn't scripting, but this: print("Hello World!") Is.
chris1989
#15986659Thursday, October 29, 2009 12:28 AM GMT

Again programming is scripting/scripting in programming. Programs are written with scripting languages the reason they show up as squares and stuff is because there encrypted. Like all the roblox.dll files there all encrypted so you cant read them.
gaius19
#15989277Thursday, October 29, 2009 1:12 AM GMT

The boxes don't mean it's really 'encrypted', it's just written in machine language, like the hex codes I printed above. It's the actual processor instructions. See http://en.wikipedia.org/wiki/Machine_Language if that helps more.
phailbusreturns
#15991069Thursday, October 29, 2009 1:48 AM GMT

Machine lenguage is coded on binariy 1010010101001010010101110101001
ihavecandy3
#15991695Thursday, October 29, 2009 2:03 AM GMT

BEANS
gaius19
#15995727Thursday, October 29, 2009 4:15 AM GMT

Binary and hex are just representations of the actual memory, how it's actually stored and processed just complicates it, so programmers tend to use something to represent it. Also I didn't feel like typing loads of binary. Because REAL programmers use hex. :P JK, it's just easier for some.
gaius19
#15996281Thursday, October 29, 2009 5:06 AM GMT

Oh, and phailbusreturns, you were off by a bit. 1010010101001010010101110101001 <-- Add one here. ¥,J,W and S or R in ascii.
MrBlockson
#15998015Thursday, October 29, 2009 9:54 AM GMT

import java.awt.*; import java.awt.event.*; import javax.swing.*; class Noob extends JFrame { public static Noob() { JTextField t = new JTextField(50); t.setText("LERN A USEFUL LANGUAGE NOOB"); this.add(t); } public static void main(String[] args) { Noob n = new Noob(); //haha here } }

    of     2   
chevron_rightchevron_rightchevron_right