ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Code Snippets  >>  Programming Code  >>  Visual Basic Code
 
 


 

 
 C Code interview questions  C Code Interview Questions
 C++ Code interview questions  C++ Code Interview Questions
 VC++ Code interview questions  VC++ Code Interview Questions
 Java Code interview questions  Java Code Interview Questions
 Dot Net Code interview questions  Dot Net Code Interview Questions
 Visual Basic Code interview questions  Visual Basic Code Interview Questions
 Programming Code AllOther interview questions  Programming Code AllOther Interview Questions
Question
Write a code snippets to find greatest and least of any 
number of inputs without taking the help of array
 Question Submitted By :: Arup Ratan Banerjee
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Write a code snippets to find greatest and least of any number of inputs without taking the help of array
Answer
# 1
#include <stdio.h>
#include <conio.h>

void main(void)
{
	unsigned int max = 0; unsigned int min = -1;unsigned int
wish = 1;
	
	while(wish)
	{
		printf("\nEnter The Number sequence ( 0 to terminate ) . .
. ");
		scanf("%d",&wish);
		if(wish > max) max = wish;
		if(wish < min) min = wish;
	}
	printf(" Max = %u Min = %u ",max,min );
}
 
Is This Answer Correct ?    1 Yes 0 No
Sundar
 

 
 
 
Other Visual Basic Code Interview Questions
 
  Question Asked @ Answers
 
Write a code snippets to find greatest and least of any number of inputs without taking the help of array Wipro1
 
For more Visual Basic Code Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com