write a c program to find biggest of 3 number without
relational operator?
Answer Posted / pankaj upadhyay
using c++;
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int a,b,c;
double d;
cout<<"enter no.";
cin>>a>>b;
d=pow(2,a-b)
c=(int)d;
if(c==0)
cout<<b;
else
cout<<a;
return 0;
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is the meaning of typedef struct in c?
What is the explanation for cyclic nature of data types in c?
What is the difference between malloc() and calloc() function in c language?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
What are identifiers in c?
What is scope rule of function in c?
What does sizeof int return?
How do I get a null pointer in my programs?
how should functions be apportioned among source files?
What is variables in c?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What are the data types present in c?
Write a program to print all permutations of a given string.
Differentiate between null and void pointers.