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 the best way of making my program efficient?

555


Explain how do you list files in a directory?

606


Can a local variable be volatile in c?

566


What functions are used in dynamic memory allocation in c?

580


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

614






When should we use pointers in a c program?

616


What are the types of arrays in c?

612


How important is structure in life?

577


What does nil mean in c?

664


Describe how arrays can be passed to a user defined function

765


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

623


What is maximum size of array in c?

569


What is double pointer in c?

573


What is structure padding and packing in c?

603


Explain which function in c can be used to append a string to another string?

572