write a c++ program that gives output 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 using looping statement Write a program and call it sortcheck.
cpp which receives 10 numbers from input and checks whether these numbers are in ascending order or BirlaSoft not. You are not allowed to use arrays. You should not define more than three variables #include<iostream.h> void main() { class x { public: int func(int) { cout<<"cool"; return Infosys 1; } } } Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create Given the following function definition: int doit(int &x, int y, int &z) { x = 3*x; y = y + 5; z = x+y; return z - 4; } int a = 5, b = 7, c = 9, d = 11; d = doit(a,b,c); Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == 4 ) y-= 7; else y = 8; Enter a segment of code (without any IF statements) that does exectly the same thing using the switch structure. Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed? Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers) Write a single instruction that will find the remainder of integral division when x is divided by y. Have the answer stored in z. If you had the following code: int x = 23; int *y; y = &x; The instruction y++; does what? Write a corrected statement in c++ so that the statement will work properly. x + y=z; Write a corrected statement in c++ so that the statement will work properly. x =+ 7; Write a corrected statement in c++ so that the
184
172
300
59
90
37
49
42
0 2 2 2 1
33 148 66 48 39
statement will work properly. if (x = y) x = 2*z; Write a corrected statement in c++ so that the statement will work properly. if (x > 5); y = 2*x; else y += 3+x; Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
47