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
Is rust better than c++?
What is the use of endl in c++?
What are the important differences between c++ and java?
Is map sorted c++?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
What is scope operator in c++?
Is ca high or low level language?
What is the best free c++ compiler for windows?
What are the differences between new and malloc?
What is the difference between mutex and binary semaphore?
Implement stack operations with pointers with appropriate exception checks.
Define a conversion constructor?
How the keyword struct is different from the keyword class in c++?
Evaulate: 22%5 a) 2 b) 4 c) 0
What is the difference between new() and malloc()?