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
What is function overloading c++?
What do you mean by “this” pointer?
What is meaning of in c++?
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
Write a program to find the Fibonacci series recursively.
What is algorithm in c++ programming?
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 boyce codd normal form in c++?
How many different levels of pointers are there?
What is c++ array?
What is a dangling pointer in c++?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
What you know about structures in C++?
What is flush () in c++?
What is prototype in c++ with example?