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 runtime errors c++?
What is c++ redistributable?
Can I uninstall microsoft c++ redistributable?
Explain linked list using c++ with an example?
What is endianness?
What is the best c++ compiler for windows 10?
How would you use the functions randomize() and random()?
What is capacity in vector in c++?
What are arithmetic operators?
Can we use clrscr in c++?
What is the most common mistake on c++ and oo projects?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
When does a 'this' pointer get created?
Can we run c program in turbo c++?
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)