can output 5 students using one dimensional array
Answer / hari haran
#include<iostream.h>
void main()
{
int a[5];
for(int i=0;i<n;i++)
{
cin>>a[i];
}
for(int i=0;i<n;i++)
{
cout<<"
"<<a[i];
}
}
Is This Answer Correct ? | 3 Yes | 0 No |
Is c++ primer good for beginners?
Why do we use the using declaration?
How static variables and local variablesare similar and dissimilar?
What is searching?
What is an iterator class in c++?
Which software is best for programming?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
How the keyword struct is different from the keyword class in c++?
What is setw manipulator in c++?
What is a hashmap c++?
Why do we learn c++?
write infinite loop in C++ which does not use any variable or constant?