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
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
Explain how can a program be made to print the name of a source file where an error occurs?
What is array of structure in c programming?
What is difference between structure and union with example?
difference between object file and executable file
What are the advantages of union?
How will you delete a node in DLL?
What is the difference between a free-standing and a hosted environment?
how to create duplicate link list using C???
What is the scope of local variable in c?
Why is c called a structured programming language?
What Is The Difference Between Null And Void Pointer?
Can a pointer be volatile in c?
What is c standard library?
Explain the use of bit fieild.