Computer Science, asked by RaviJamesBond, 1 year ago

write a program to input are three digit number and check the greatest number (C++) answer Fast I will surely mark brainliest​

Answers

Answered by ayushkr004
1

Answer:

here it is

Explanation:

#include <iostream.h>

#include<conio.h>

void main()

{    

   int n1, n2, n3;

   cout << "Enter three numbers: ";

   cin >> n1 >> n2 >> n3;

   if(n1 >= n2 && n1 >= n3)

   {

       cout << "Largest number: " << n1;

   }

   if(n2 >= n1 && n2 >= n3)

   {

       cout << "Largest number: " << n2;

   }

   if(n3 >= n1 && n3 >= n2) {

       cout << "Largest number: " << n3;

   }

   return 0;

}


RaviJamesBond: thanks a lot
RaviJamesBond: for ur help
ayushkr004: your welcome
RaviJamesBond: i m very grateful to u
ayushkr004: me too because you marked me brainliest
RaviJamesBond: ohh
RaviJamesBond: u r already mentally brainliest dear
Similar questions