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 vectorial capacity?
What is difference between class and structure in c++?
What is a literal in c++?
Can comments be longer than one line?
Do class declarations end with a semicolon? Do class method definitions?
Why c++ does not have finally?
What are the advantages of using pointers in a program?
What is purpose of new operator?
What are maps in c++?
What is a class template in c++?
What is time_t c++?
What is c++ virtual inheritance?
What is c++ prototype?
What is the best book for c++ beginners?
Explain the auto storage classes in c++.