Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Write a program to use switch statement.

1136


What is the function of multilevel pointer in c?

1088


Do you know pointer in c?

1059


What is a void pointer? When is a void pointer used?

1065


What is pointer & why it is used?

1125


What is variables in c?

1055


What are the types of unary operators?

1194


What is putchar() function?

1170


What are variables c?

1056


Difference between strcpy() and memcpy() function?

1158


What is the difference between text and binary i/o?

1061


Can you write a programmer for FACTORIAL using recursion?

1049


What does != Mean in c?

1059


What is the use of the function in c?

1021


Explain high-order and low-order bytes.

1111