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
Explain setjmp()?
What are c preprocessors?
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
What are the different properties of variable number of arguments?
How do you convert strings to numbers in C?
What is difference between %d and %i in c?
What is the right way to use errno?
How do I round numbers?
What does the c in ctime mean?
What is the difference between new and malloc functions?
When should a far pointer be used?
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
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Explain what will the preprocessor do for a program?
What does printf does?