Write a C++ program without using any loop (if, for, while
etc) to print numbers from 1 to 100 and 100 to 1;
Answer Posted / pur
main()
{
int i =100;
start:
if( i == 0)
goto end;
printf(" %d ",i)
i--;
goto start;
end:
printf(" end of the program");
}
| Is This Answer Correct ? | 20 Yes | 47 No |
Post New Answer View All Answers
Explain what is the concatenation operator?
Are local variables initialized to zero by default in c?
write a proram to reverse the string using switch case?
How can this be legal c?
Explain 'bit masking'?
What is the process to generate random numbers in c programming language?
What are the types of type qualifiers in c?
Can a function argument have default value?
Why do we use null pointer?
Do array subscripts always start with zero?
Explain what does a function declared as pascal do differently?
What do the functions atoi(), itoa() and gcvt() do?
What is the modulus operator?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
Do you know null pointer?