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 / balaji.k

#include<stdio.h>
#include<conio.h>
void main()
{
clescr();
int i,chl,start;
printf("enter the number from 1 to 100\n");
scanf("%d",ch);
else
go to start
start=1 to 100;
else
go end
exit(0);
}

Is This Answer Correct ?    3 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain setjmp()?

662


What are c preprocessors?

681


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

629


What are the different properties of variable number of arguments?

669


How do you convert strings to numbers in C?

713






What is difference between %d and %i in c?

698


What is the right way to use errno?

625


How do I round numbers?

606


What does the c in ctime mean?

573


What is the difference between new and malloc functions?

584


When should a far pointer be used?

607


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

759


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1862


Explain what will the preprocessor do for a program?

607


What does printf does?

753