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
What are the header files used in c language?
Explain main function in c?
What is gets() function?
largest Of three Number using without if condition?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is a spanning Tree?
What is the purpose of type declarations?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What does 3 mean in texting?
Why pointers are used?
What is the purpose of void in c?
How do you sort filenames in a directory?
How can you call a function, given its name as a string?
How do I get a null pointer in my programs?
Differentiate abs() function from fabs() function.