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
What is string length in c?
Can include files be nested? How many levels deep can include files be nested?
Is null always defined as 0(zero)?
What is the size of enum in c?
write a program to concatenation the string using switch case?
What does 1f stand for?
Why can't I perform arithmetic on a void* pointer?
What are derived data types in c?
When should a far pointer be used?
Are pointers integers in c?
What are valid operations on pointers?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
Explain what math functions are available for integers? For floating point?
What is the use of a ‘ ’ character?
What is masking?