Answer Posted / santhi perumal
#include<stdio.h>
#include<conio.h>
//To calculate a-b
void main()
{
int a,b,min,max;
printf("Enter the value of a and b \n");
scanf("%d %d",&a,&b);
min = (a<b)?a:b;
max = (a>b)?a:b;
while(min--) max--;
if(a<b)
printf("-%d",max);
else
printf("%d",max);
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
explain what are actual arguments?
What does 2n 4c mean?
Is fortran still used today?
Under what circumstances does a name clash occur?
How do you determine the length of a string value that was stored in a variable?
How can I change their mode to binary?
Can we assign integer value to char in c?
What are the two types of structure?
What is the best way to store flag values in a program?
What are the preprocessor categories?
What is nested structure in c?
How a string is stored in c?
What is the difference between pure virtual function and virtual function?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
Why do we use header files in c?