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 enumerated data type in c?

869


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4870


What is meant by keywords in c?

862


Explain what are multibyte characters?

892


Explain the term printf() and scanf() used in c language?

845


Why c is called free form language?

783


Explain what are header files and explain what are its uses in c programming?

901


When was c language developed?

939


Here is a good puzzle: how do you write a program which produces its own source code as output?

866


Can we change the value of static variable in c?

782


What is meant by 'bit masking'?

1143


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

5003


What is the size of a union variable?

812


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3069


Can the size of an array be declared at runtime?

834