Tuesday, August 4, 2009

Coming generation programming langauge

I want to write a program for getting two numbers from user and double its sum. I want to write it this way.

//Begin

Define function doubltInt,
Which receives someInt,
And sends doubledInt.
Do “multiply someInt with 2 and store in doubledInt” in it.
Send doubledInt from it.

Main function:
Define integers iInt, jInt,doubleInt and sumInt.
Print “Enter 2 numbers”
Get input iInt
Get input jInt

Add iInt to jInt and store in sumInt.
Print “sumInt is sumInt”

Call function doubleInt,
Send sumInt to it.
Fetch doubleInt from it.
//end

How would be the compiler for this? Would the next generation high level language be like this?

No comments: