Answer:
x is assigned "5", y is assigned "28", and ch is assigned "$"
Explanation:
#include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
int x,y;
char ch;
x = 5;
y = 28;
ch = 36;
cout<<x<<endl<<y<<endl;
cout<<ch;
return 0;
}
import java.util.Scanner;
public class MyClass1 {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int smallest = 0, largest = 0, num, count = 0;
while (true){
System.out.println("Enter a number (-1 to quit): ");
num = scan.nextInt();
if (num == -1){
System.exit(0);
}
else if (num < 0){
System.out.println("Please enter a positive number!");
}
else{
if (num > largest){
largest = num;
}
if (num < smallest || count == 0){
smallest = num;
count++;
}
System.out.println("Smallest # so far: "+smallest);
System.out.println("Largest # so far: "+largest);
}
}
}
}
I hope this helps! If you have any other questions, I'll do my best to answer them.
Explanation:
A map is the correct answer hope that helps you.
Answer:
The control unit of the CPU contains circuitry that uses electrical signals to direct the entire computer system to carry out stored program instructions.
Explanation: The control unit does not execute program instructions rather, it directs other parts of the system to do so.