What is the time complexity T(n) of the following program? a) int n, d, i, j; cin >> n; for (d=1; d<=n; d++) for (i=1; i<=d; i++) for (j=1; j<=n; j += n/10) cout << d << " " << i << " " << j << endl; b) void main() { int n, s, t; cin >> n; for (s = 1; s <= n/4; s++) {t = s; while (t >= 1) { cout << s << " " << t << endl; t--; } } } c) void main() { int n, r, s, t; cin >> n; for (r = 2; r <= n; r = r * 2) for (s = 1; s <= n/4; s++) { t = s; while (t >= 1) { cout << s << " " << t << endl; t--; } } }
3 11016write a c program, using for loop, that accepts and odds two numbers. The output must be the sum and the addens. This should be repeated 5 times while the first number is decremented by one and the second number is incremented by 1.
2 96471.program to add any two objects using operator overloading 2.program to add any two objects using constructors 3.program to add any two objects using binary operator 4.program to add any two objects using unary operator
2 24734Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.
5 17439. Write a program using two-dimensional arrays that computes the sum of data in tows and the sum of data in columns of the 3x3 (three by three) array variable n[3][3].
2 18399Post New IBM C++ Code Interview Questions
What is the full form of cable type-ayry
Hi i am riyaz ahmed . i got rejected for first time and i nedd to apply for next time and can i apply in 1 or 2 week . and wt abt my sevies fee ? i should make a new once shill i go with the same and wt docement i should change can u plz help me out and my mail it is royalriyaz@gmail.com
hi sir plz send me clerical exams model test papers for the preperation of indian bank exam am very thankful to you
How much does it cost for a copy of windows 10?
hi plz send me reliance placement papers..i.e electrical technical papers that have been asked in reliance test.
Hi,friends i am going to write ICST certificate exam on augest.So can anybody post some of sample qusetions for ICST certificate exam.Really it will be useful for me
hi friends I want to know the details of Group 1 or Group II Exams, from where i will get the applicaions, study material, exams date. wat is the date of subscription for the applications? wat should be the Qualification for these entrance test. I Would be gladfull if any one can suggest me with the answers. Thank you!
sir, plz send me the question regarding DMS gr1 questions of previous year as my exam is on 27/09/08...thanking u in advance...
I am manjunath having exp in maintenance of chemical plants,know i want to do a design course INTOOLS,after doing design course can we get jobs in design field.sinve i dont have design exp..
Write a VLSI program that implements a toll booth controller?
what is the principle of UV Vis spectroscopy, AAS, ICP OES,ICPAES, ICP-MS and FTIR
sir can u plz send me Jindal Steel's mechanical engg. paper and the aptitude paper of previous year....i wud be very thankful to u.... my email id..- suraj.candid@gmail.com
Can you describe the importance of model interpretability in Explainable AI?
can any one know about NIC (National Informatics Centre) questions Patterns and full detail about written exam, and interview send to softshikha2005@yahoo.com.in Thank you
Why and when do stored procedure recompile?