Answer:
Cause It Will Help Make A Fix For The Issue
Explanation:
Does This Help?
Answer:
// here is code in c++.
// include header
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables to read input
int userNum,x;
cout<<"enter the value of userNum and x :";
// read the input from user
cin>>userNum>>x;
// divide the userNum with x 4 times
for(int a=0;a<4;a++)
{
userNum=userNum/x;
cout<<userNum<<" ";
}
cout<<endl;
return 0;
}
Explanation:
Declare two variables "userNum" and "x". Read the value of these. Run a for loop 4 time and divide the "userNum" with "x" and print the value of "userNum".
<u>Output:</u>
enter the value of userNum and x :2000 2
1000 500 250 125
Answer:
Integer.parseInt( stringVariable );
Explanation:
This function is used to convert the string into integer in java .Following are the program that convert the string into integer in java .
public class Main
{
public static void main(String[] args) // main method
{
String num = "1056"; // string variable
int res = Integer.parseInt(num); //convert into integer
System.out.println(res); // display result
}
}
Output:1056
Therefore the correct answer is:Integer.parseInt( stringVariable );
Answer:
The answer to this question is DVD and DVD-RW
Explanation:
The question is asking us to swap the values of xp and yp while not changing where they point to. Setting xp equal to yp would not work because then we couldn't change yp since the value for xp was overwritten. We can use a third variable to swap them.
int zp = xp;
xp = yp;
yp= zp;