Preview:
#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;
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter