write a program that takes two numbers from user that
prints the smallest number

Answers were Sorted based on User's Feedback

write a program that takes two numbers from user that prints the smallest number ..

Answer / hemant jakkani

#include <stdio.h>
#include <string.h>

int x,y;
printf("First Number is greater: %d",x);
printf("Second Number is greater:%d",y);

Is This Answer Correct ?    6 Yes 1 No

write a program that takes two numbers from user that prints the smallest number ..

Answer / vaishnavi

void main()
int a,b;
cout<<"Enter two numbers";
cout<<a<<"is greater";
cout<<b<<is greater";

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More C++ General Interview Questions

How do you print for example the integers 3,2,1,5,4 in a binary tree within the console in format where it looks like an actual binary tree?

0 Answers  

what is Loop function? What are different types of Loops?

0 Answers  

write a program that reads in a file and counts the number of lines, words, and characters. Your program should ask the user to input a filename. Open the file and report an error if the file does not exist or cannot be opened for some other reason. Then read in the contents of the file and count the number of lines, words, and characters in the file. Also print additional information about the file, such as the longest and shortest words, and longest and shortest lines. For simplicity, we define a word to be one or more characters ending with white space (a space, tab, carriage return, etc.). Functions for checking the types of characters can be found in the ctype.h header file, so you want to include this header file in your program. For example, the sentence below could be all that is in a file. This sentence IT 104 is taught in C++. has 32 characters, one line, and six words. The shortest line is 32 characters. The longest line is 32 characters. The shortest word is 2 characters. The longest word is 6 characters

0 Answers  

Evaluate !(1&&1||1&&0) a) Error b) False c) True

0 Answers  

make a middle node of doubly linklist to the top of the list

1 Answers  

Briefly describe a B+ tree. What is bulk loading in it?

0 Answers   Wipro,

Which algorithm do you like the most? Why?

2 Answers   Google,

Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D

1 Answers  

Problem 6: Area of a trapezoid can be calculated by the following formula: A=(b1 b2)×h2 where b1 and b2 are the parallel sides or the bases and h is length of height Write a C code of this program

0 Answers   Maxobiz,

What is meant by entry controlled loop?

0 Answers   Agilent, ZS Associates,

What is the use of 'this' pointer?

0 Answers   Fidelity,

What are the different types of Storage classes?

5 Answers