a) for (int count = 1; count < 100; count++); 66 66 cout << (10* count) b) int total 75,score=20; total + score: system.println("New Total is"); system.printf("%d,%n,%d%n%d", ++ total, total - - ,total); c) int i = 1; while (i <= 10) { { } if(i==8) break; cout<< i+ 3; itti d) int i,j; for(i=0;i<2;i++) for(j=0;j<=3;j++) { cout<< "Hi": } cout<<<'*'; }
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
1. In this question the for loop is given with initializing variable name count and conditions are given , the output is -
//Question Number 1
#include <iostream>
using namespace std;
//Main function
int main() {
//for loop with count variable initialized with 1
//loop has condition count smaller than 100 , so loop will run 99 times
for(int count = 1; count <100;count++){
//every time loop will run it will print the value of count multiply by 10 and space
cout<<(10*count)<<" ";
}
return 0;
}
OUTPUT:-
Count has initial value of 1 and condition is count smaller than 100 (so its 99). So loop will run 99 times and every time loop runs it will print the value of count multiply by 10 and space.
Step by step
Solved in 4 steps with 4 images