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
Write a program to use switch statement.
What is the function of multilevel pointer in c?
Do you know pointer in c?
What is a void pointer? When is a void pointer used?
What is pointer & why it is used?
What is variables in c?
What are the types of unary operators?
What is putchar() function?
What are variables c?
Difference between strcpy() and memcpy() function?
What is the difference between text and binary i/o?
Can you write a programmer for FACTORIAL using recursion?
What does != Mean in c?
What is the use of the function in c?
Explain high-order and low-order bytes.