Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
2 Write an algorithm to input two numbers and find their sum and difference
Home
Education
2 Write an algorithm to input two numbers and...
asked
Nov 28, 2021
in
Education
by
JackTerrance
2 Write an algorithm to input two numbers and find their sum and difference Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Nov 28, 2021
by
JackTerrance
Best answer
Answer: Write an algorithm to calculate the sum difference product and subtract of two numbers. first Declare 2 variables a ,b. input 2 nos a and b. print sum=a+b. print difference = a-b. print product =a*b.
Related questions
0
votes
Q: write a program to input three integers and find the difference between their sum and difference
write a program to input three integers and find the difference between their sum and difference Select the correct answer from above options...
asked
Dec 20, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: WAP in java to input 2 numbers from user and print their difference (Always Positive).
WAP in java to input 2 numbers from user and print their difference (Always Positive). Select the correct answer from above options...
asked
Dec 19, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Algorithm To find out the sum of first 100 even numbers.
Algorithm To find out the sum of first 100 even numbers. (only in steps) Select the correct answer from above options...
asked
Dec 20, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program in python to obtain 3 numbers and print their sum.
write a program in python to obtain 3 numbers and print their sum. Select the correct answer from above options...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: If two different numbers are taken from the set `{0,1,2,3, ,10};` then the probability that their sum as well absolute difference are both multiple of
If two different numbers are taken from the set `{0,1,2,3, ,10};` then the probability that their sum as well ... D. `(7)/(55)` Select the correct answer from above options...
asked
Nov 13, 2021
in
Education
by
JackTerrance
artificial-intelligence-interview-questions
artificial-intelligence-interview-questions-answers
artificial-intelligence-multiple-choice-questions
artificial-intelligence-mcq-with-answers
artificial-intelligence-mcq
artificial-intelligence-questions
0
votes
Q: write algorithm and flowchart the inputs two numbers swaps these values without using third variable
write algorithm and flowchart the inputs two numbers swaps these values without using third variable Select the correct answer from above options...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write statements in QBASIC for each of the situations described below.(ii) Assign the value represented by variable N to the variable N1.(1) Assign a value 2 to the variable A.(iii) Assign “INDIA” to a variable A$.(iv) Assign the sum of the two variables X and Y to the variable z
Write statements in QBASIC for each of the situations described below. (ii) Assign the value represented by variable ... the variable A Select the correct answer from above options...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write an algorithm and draw a flowchart to print prime numbers from 1 to 50
Write an algorithm and draw a flowchart to print prime numbers from 1 to 50 Select the correct answer from above options...
asked
Dec 10, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: How to write a program in JAVA to print the sum of ASCII values of a particular word input ?
How to write a program in JAVA to print the sum of ASCII values of a particular word input ? Select the correct answer from above options...
asked
Dec 28, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a Java program to input 10 non-zero numbers in an array and display the count of even and odd numbers.
write a Java program to input 10 non-zero numbers in an array and display the count of even and odd numbers. URGENT! Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write an algorithm and flowchart to find perimeter of rectangle and psuedocode of it’s
Write an algorithm and flowchart to find perimeter of rectangle and psuedocode of it’s Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: draw a flow chart to find out the average of sum of 4 numbers with steps
draw a flow chart to find out the average of sum of 4 numbers with steps Select the correct answer from above options...
asked
Dec 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: what is the difference between sum and cumulative sum? how do you perform the two on dataframe?
what is the difference between sum and cumulative sum? how do you perform the two on dataframe? Select the correct answer from above options...
asked
Dec 28, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Two dice are rolled. Find the probability that the sum of their upper faces is (i) an Even number (ii) Divisible by 4 (iii) Divisible by 3 and 4
Two dice are rolled. Find the probability that the sum of their upper faces is (i) an Even number (ii) ... Divisible by 3 and 4 Select the correct answer from above options...
asked
Nov 13, 2021
in
Education
by
JackTerrance
artificial-intelligence-interview-questions
artificial-intelligence-interview-questions-answers
artificial-intelligence-multiple-choice-questions
artificial-intelligence-mcq-with-answers
artificial-intelligence-mcq
artificial-intelligence-questions
0
votes
Q: Ankita takes as input 2 integer numbers, a and b, whose value can be between 0 and 31. He stores the
Ankita takes as input 2 integer numbers, a and b, whose value can be between 0 and 31. He stores them as 5 bit ... 4: 9 bits Op 5: Select the correct answer from above options...
asked
Dec 28, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...