Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

What went wrong in my simple code?

# A very simple python program to compare two numbers using functions  from sys import exit def main(): check() compare(x, y) def check(): # prompt user for two numbers x = input("x: ") y = input("y: ") # apply sanit

Block variable in objective C

Block access the data in normal way as the other normal function do. Block can access any class variable or function variable out side it but cannot modified it. int x= 111; void (^printXAndY)(int) = ^(int y) { printf("%d %d\n", x, y); }; print

JavaScript Validator for String Expression that Allow Arithmetic Expressions

I need a help in writing a validator in javascript or JQuery for a string expression that will allow arithmetic expressions like (),+,-,*,/,min(),max(),avg(). In the string, min(),max(),avg() should allow only two arguments. Sample string expressi

JavaScript Assignment Operators

JavaScript Assignment Operators The Assignment Operator is used to assign the value of the right operand to the left operand. The key rule for this operator is that it always assign value from right to left. The Assignment operator (=) works as (x=

Local and Global Variables

Local Variables: Variables that are defined within a function or a block are called local variables. They can only be used within a function or a block. These can't be accessed outside their scope or we can say outside their function. #inc

Write a program in java to evaluate and print the value of mathematical function: f(x,y) = 2x2 - y + 3

Write a program in java  to evaluate and print the value of the following mathematical function: f(x,y) = 2x2 - y + 3 Vary the values of x and y according to the following table and prints the values of f(x,y) as shown in the table. x = ( 3.0

Bouncing Balls and Collision with Walls

Bouncing balls with collision from any 2Dcolliders/wall can be achieved by putting continuous force to the game object and assign a physics material to the game object you like to bounce on collision. 1. Gameobject must have rigidbody attached to it

How to detect collision between two elements.

Can any one give me the idea. How I can detect collision between 2 dom element. I have got this code form MDN. But can't go thorough it. Please help me. var rect1 = {x: 5, y: 5, width: 50, height: 50} var rect2 = {x: 20, y: 10, width: 10, height: 10

I need help in a C code

Help me with the Logic of the question given below: You will be given a file with two lines. First line will contain two integers separated by commas(say X,Y). In the next line there will be Y number of integers again separated by commas. You should

Parsing expression in Data structure

Firstly to understand the parsing expression in data structure we should know about the arithmetic notations. There are three ways of writing arithmetic notations which are having same meaning:- 1. Infix Notation 2.Prefix Notation 3.Postfix Notation

prev 1 3 137
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: