W.A.P to take input of an array and display the entered no.
in dos.
Answer / Sanjeev Kumar Verma
Here's a simple example in C++ that takes user input for an array and displays its elements:
```cpp
#include<iostream>
using namespace std;
int main() {
int n; // number of elements in the array
cout << "Enter the number of elements in the array: ";
cin >> n;
int arr[n]; // declare an array of size n
cout << "Enter the elements of the array:" << endl;
for(int i=0; i<n; i++) {
cout << "arr[" << i << "]: ";
cin >> arr[i];
}
cout << "The entered elements are: " << endl;
for(int i=0; i<n; i++) {
cout << arr[i] << " ";
}
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
what is node class?
what is putchar() and getchar()?????
Explain a situation in which you handled a customer?s questions or problems?
hi, i m ganesh.. i have cleared LAKSHMI VILAS BANK FOR clerical post... any body who have already received interview call letter pl mail me to my mail id ganesh_280574@rediffmail.com my mobile no is 9842648112
Why Mother Board is called Mother Board & not Father Board?
12 Answers Microsoft, Precision Infomatic, SoftStream,
What is protocol
Problem:Design and implement a class that allows a teacher to track the grades in a single ourse.Include methods that calculate the average grae, the highest grade, and the lowest grade.Wrute a program to testyour class implementation in a c#. given grades:integral=85, physics=87, datastruct=84.
requirement:To move display statements in a cobol program to a dataset.These display statements were not in main program but in calling program and we were not allowed to move these info via sysout dd dsn='dataset.name' . please let me know the ways this can be handled
. There are two water tanks A and B, A is much smaller than B. While water fills at the rate of 1 liter every hour in A, it gets filled up like, 10, 20, 40,80, 160…..in tank B. (At the end of first hour, B has 10 liters, second hour it has 20 liters and so on). If tank B is 1/32 filled of the 21 hours, what is total duration of hours required to fill it completely?
true and false 1. The jawa source code can be created in a notepad editor. 2. The value of 111% 13 is 3.
what is e-bum.
explain in detail about life cycle of thread
Civil Engineering (5086)
Mechanical Engineering (4453)
Electrical Engineering (16638)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)