Answer:
Option (B) and (C) is the correct option to the following question.
Explanation:
Because the function is the module of the program and we call that function again and again anywhere whenever we need that function in the program.
Function is used to carry out any operation which is used in the program many times and it creates the program short and simple.
<u>For example</u>: if we need to add or multiply two numbers many times in the program then, we create one or two functions for addition and subtraction or one program for both, when we need them we call them.
<span>B. Second phase of the Keynesian LRAS Curve.</span>
What are you talking about?
Answer:
The answer to this question is "nested".
Explanation:
The answer to this question is nested because, In programming languages, there is a concept of nested if-else statement. In nested if-else statement placing if statement inside another IF Statement that is known as nested If in C Programming.
Example of nested if can be given as
#include <stdio.h>
int main()
{
int a,b,c;
printf("Enter 3 number\n");
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(a>b)
{
if(a>c)
{
printf("A is greater: %d",a);
}
}
else
{
if(b>c)
{
printf("B is greater: %d",b);
}
else
{
printf("C is greater: %d",c);
}
}
return 0;
}
output:
Enter 3 number
4
7
9
c is greater: 9
Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
int main() {
char Keep_Going = '-';
int nextBid = 0;
srand(5);
while (Keep_Going != 'n') { //<-- solution
nextBid = nextBid + (rand()%10 + 1);
cout << "I'll bid $" << nextBid << "!" << endl;
cout << "Continue bidding? ";
cin >> Keep_Going;
}
cout << endl;
return 0;
}