Answer:
The correct answer is Infinite times .
Explanation:
Here var num=10;
while(num>0)
{
}
10>0 condition is true
but no increment or decrement of num. That is why num >0 is always TRUE So the loop will run for infinite times and execute the statement inside of loop every time. This loop will never terminate.
The syntax of while loop
while(condition checking)
{
statement
increment/decrement;
}
In the given code no increment /decrement so output is infinite times.
Answer:
Bro
Explanation:
No one will answer that when its not understandable
Answer:
The code will be a java-script code
Explanation:
public abstract class Phone{
private String phoneNumber ;
public Phone (String thePhoneNumber) {
phoneNumber = thePhoneNumber ;
}
public String getPhoneNumber ( ) {
return phoneNumber ;
}
public String toString ( ) {
phoneNumber = "# (" + phoneNumber + ") " ;
return phoneNumber ;
}
public abstract boolean createConnection (Network status) ;
public abstract void closeConnection( ) ;
}
That would be what is known as Spyware, a common form of this is known as a "Trojan Horse". This type of malware is typically latched on and hidden within files, such as when downloading a pirated version of a song, game, art-work, etc...
Answer:
The equivalent if statements is:
ranforce = randi([0, 12]);
if (ranforce == 0)
disp('There is no wind')
else if(ranforce>0 && ranforce <7)
disp('There is a breeze')
else if(ranforce>6 && ranforce <10)
disp('This is a gale')
else if(ranforce>9 && ranforce <12)
disp('It is a storm')
else if(ranforce==12)
disp('Hello, Hurricane!')
end
Explanation:
<em>The solution is straight forward.</em>
<em>All you need to do is to replace the case statements with corresponding if or else if statements as shown in the answer section</em>