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 / harpreet kaur

we can create our own header file having a function to
print nos with loop and then use that header file in new
prog with the functoin defined in it.

Is This Answer Correct ?    30 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is variables in c?

809


please explain every phase in the "SDLC" in the dotnet.

2387


What is const volatile variable in c?

787


which is conditional construct a) if statement b) switch statement c) while/for d) goto

992


What is main return c?

741


When was c language developed?

923


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1958


What is the correct code to have following output in c using nested for loop?

837


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

991


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

807


What is spark map function?

808


write a program to print largest number of each row of a 2D array

2096


Does c have enums?

788


What are the types of functions in c?

756


What is static function in c?

842