"সি"তে সর্বোচ্চ সংখ্যা নির্ণয় করার জন্য প্রোগাম
// find out the maximum value
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a, b, c, result, max;
printf("\nInput the first integer: ");
scanf("%d", &a);
printf("\nInput the second integer: ");
scanf("%d", &b);
printf("\nInput the third integer: ");
scanf("%d", &c);
result=(a+b+abs(a-b))/2;
max=(result+c+abs(result-c))/2;
printf("\nMaximum value of integer: %d", max);
printf("\n");
return 0;
}
0 Comments:
Post a Comment