Monday, September 23, 2019

"সি"তে সর্বোচ্চ সংখ্যা নির্ণয় করার জন্য প্রোগাম 

// 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

Categories

About Me

My photo
I am Md Fakhrul Islam. I am a student of EEE of Daffodil International University I am expert in SEO and Graphic designing.

Contact Form

Name

Email *

Message *

Popular Posts