google407ec42f1ae5ff0e.html
top of page

Program to print the bigger number using if

Program to print the bigger number

#include<stdio.h>

void main()

{

int a,b;

printf("Enter two numbers : ");

scanf("%d%d",&a,&b);

if(a>b)

{

printf("Bigger number=%d\n",a);

}

else

{

printf("Bigger number=%d\n",b);

}

getch();

}

7 views0 comments

Recent Posts

See All

Comentarios


bottom of page