Program to find largest of three numbers (C++)

Program to find largest of three numbers


#include <stdio.h>
#include <conio.h>
void main()

int a, b, c;
printf(“Enter first number:”);
scanf(“%d”, &a);
printf(“Enter second number:”);
scanf(“%d”, &b);
printf(“Enter third number:”);
scanf(“%d”, &c);
if (a>b)
if (a>c)
printf(“First number is largest”);
printf(“Second number is largest”);
printf(“Third number is largest”);


“My posts/articles/images are not allowed to be stolen/copied anywhere at Cyber space. Doing so will allow me to take a legal action against the copier.”

Related Posts

M.Bakhtiar Zuberi
Hello, I'm M.Bakhtiar Zuberi, the only article poster & owner of this website. Your comments/suggestions are welcomed the most! is a part of network.

Leave a Comment

Kindly solve the following puzzle to prove that you\'re not a bot: