google407ec42f1ae5ff0e.html
top of page
Writer's pictureYatendra Awana

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();

}

6 views0 comments

Recent Posts

See All

Comments


bottom of page