Welcome to the World of Online Learning:
Hello Friends “This blog helps you to learn C programming concepts. You can learn C language at your own speed and time. One can learn concepts of C language by practicing various programs given on various pages of this blog. Enjoy the power of Self-learning using the Internet.”

Write a C program to Largest value among three variables
PROGRAM: Largest value among three variables
/* Largest value among three variables */
#include<stdio.h>
int main()
{
int a,b,c;
printf(“Enter value of a: “);
scanf(“%d”,&a);
printf(“Enter value of b: “);
scanf(“%d”,&b);
printf(“Enter value of c: “);
scanf(“%d”,&c);
if(a >= b && a >= c)
printf(“%d is largest”,a);
else if(b >= a && b >= c)
printf(“%d is largest”,b);
else if(c >= a && c >= b)
printf(“%d is largest”,c);
return 0;
}