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
Can you assign a different address to an array tag?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
What are the advantages of external class?
How do you view the path?
How can I discover how many arguments a function was actually called with?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
What does %d do in c?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Explain how do you print only part of a string?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Differentiate between null and void pointers.
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What is function prototype in c language?
What is scope and lifetime of a variable in c?