Answer Posted / prk
void main()
{
int i,n,k;
cout<<"Enter the number:";
cin>>n;
k=n%2;
if(k==0)
n=n-1;
for(i=n;i<=n;i=1-2)
cout<<1;
}
| Is This Answer Correct ? | 9 Yes | 15 No |
Post New Answer View All Answers
What is c++ redistributable?
What is the real purpose of class – to export data?
What does new return if there is insufficient memory to make your new object?
What is c++ library?
How to give an alternate name to a namespace?
what are the iterator and generic algorithms.
Difference between an inspector and a mutator
Is c better than c++?
Can you write a function similar to printf()?
What is the difference between public and private data members?
Explain the use of this pointer?
Is there any difference between int [] a and int a [] in c++?
What is abstract keyword in c++?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
Are there any special rules about inlining?