write C programing that ask user to enter 3 number, and determines the maximum amongs these numbers,

PHOTO EMBED

Wed Nov 16 2022 16:53:36 GMT+0000 (Coordinated Universal Time)

Saved by @Mohamedshariif

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

/*ask use to enter three number and determines the maximum amongs on these numbers
and prints the maximum on the screen.*/


int main() {
    int num1,num2,num3;
    printf("please enter 3 number");
    scanf("%d %d %d",&num1,&num2,&num3);
    if(num1>=num2 &&num1>=num3)
    {
        printf("%d",num1);
    }
    else if(num2>=num1 &&num2>=num3)
    {
        printf("%d",num2);
    }
    else
    {
        printf("%d",num3);
    }

    return 0;
content_copyCOPY