Answer Posted / radhakrishnan
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 ? | 3 Yes | 11 No |
Post New Answer View All Answers
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?
What are associate containers?
What is a far pointer? where we use it?
How do I exit turbo c++?
Can we use clrscr in c++?
Is c++ platform dependent?
Is dev c++ a good compiler?
What is low level language in simple words?
Can constructor be static in c++?
What are the general quetions are in DEna bank manager IT/System interviews?
Why is c++ a mid-level programming language?
Why are pointers used?
When does a name clash occur in c++?
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
What is split a string in c++?