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
Write a simple code fragment that will check if a number is positive or negative.
Explain can you assign a different address to an array tag?
Difference between constant pointer and pointer to a constant.
What is structure in c explain with example?
What is use of #include in c?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
What is scope rule of function in c?
What are high level languages like C and FORTRAN also known as?
How can you find out how much memory is available?
What does it mean when the linker says that _end is undefined?
what is the difference between class and unio?
What is printf () in c?
what is recursion in C
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is calloc()?