<span>D.Specific camera angles are used</span>
Answer:
import java.util.Scanner;
public class TestClock {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int sum = 0;
char op;
do{
System.out.println("Enter two numbers");
int num1= in.nextInt();
int num2 = in.nextInt();
sum = sum+num1+num2;
System.out.println("Do you wish to perform another operation, Y/N");
op =in.next().charAt(0);
}while(op =='Y'||op=='y');
System.out.println("sum "+sum);
}
}
Explanation:
The code is implemented in Java progrmming language
- create an integer variable sum
- create a character variable op
- create a do while loop to request user to enter num1 and num2
- Request the user to also enter a char Y/N (yes or no repectively)
- While the char is Y keep adding up the sum and prompt the user to enter two new numbers
- Else break out of the loop and print the sum
Oh we did this in class I know this
Answer:
Explanation:
#include <iostream>
using namespace std;
double cube(double);
int main()
{
double ci=0;
cout << "Enter avalue :";
cin >> ci;
cout << "Cube of " << ci << "is =" << cube(ci) << endl;
return 0;
}
double cube(double i)
{
return(i*i*i);
}
Answer:
This is your answer please check this ✔