Bhuvan InfoTech Android App

Download our Android App and browse Technical News, Projects, Computer Tricks more easily with lots of Interesting Features.

Tuesday, June 14, 2016

Find larger value between two numbers | C program

#include<stdio.h>
int main()
{
    int a,b;
    printf("Enter value of first no: ");
    scanf("%d",&a);
    printf("Enter value of second no: ");
    scanf("%d",&b);    
    
    if(a>b)
        printf("first no is greater");
    else if(b>a)
        printf("second no is greater");
    else
        printf("A and B are equal");
    return 0; 
}
Bhuvan Arora

No comments:

Amazing Deal !