The code below is written in javascript which gives us the integer,
<h3>The function code is</h3>
function solution (num){
//Javascript function
var x=0,sum=0,a,b;
var d=""; //variable declaration
var digits = num.toString().split('');
var Individual = digits.map(Number);
//console.log(Individual);
for (var i=0;i<Individual.length;i++)
{//For loop
x=x+Individual[i];
}
var y=x*2;
for(var i=0;i<Individual.length;i++)
{
sum=sum+Individual[i];
d=""+d+Individual[i];
if(sum==y)
break;
if(i==Individual.length-1)
{
i=-1;
continue;
}
}
console.log("the value is "+d);
}
var number = prompt("enter the number");
//Asking user for value...
console.log("the number is");
console.log(number);
solution(num
For more information on javascript, visit
brainly.com/question/16698901?referrer=searchResults
Prison or juvenile detention of course, its a violation
Answer:
The maximum value that are represented as unsigned n -bit binary integer is
. The unsigned binary integer refers to the fixed point of the system that does not contain any fractional digits.
The unsigned binary integer contain module system with the power 2. The number of student table in the class is the best example of the unsigned integer. The numbers can be represented by using the binary notation and bits in the computer system.
Answer:
#include <iostream>
using namespace std;
int main() {
int k;
double d;
string s;
cin >> k >> d >> s;
cout << s << " " << d << " " << k << "\n" << k << " " << d << " " << s; }
Explanation:
k is int type variable that stores integer values.
d is double type variable that stores real number.
s is string type variable that stores word.
cin statement is used to take input from user. cin takes an integer, a real number and a word from user. The user first enters an integer value, then a real number and then a small word as input.
cout statement is used to display the output on the screen. cout displays the value of k, d and s which entered by user.
First the values of k, d and s are displayed in reverse order. This means the word is displayed first, then the real number and then the integer separated again by EXACTLY one space from each other. " " used to represent a single space.
Then next line \n is used to produce a new line.
So in the next line values of k, d and s are displayed in original order (the integer , the real, and the word), separated again by EXACTLY one space from each other.
The program along with the output is attached.
Explanation:
When one wants to express his or her feelings on each other