plz answer fast its in c++ language
Attachments:
Answers
Answered by
0
1. # include <stdio.h>
2.void main()
3.{
4.int a, b, c, big ;
5.printf("Enter three numbers : ") ;
6.scanf("%d %d %d", &a, &b, &c) ;
7.big = a > b ? (a > c ? a : c) : (b > c ? b : c)
8. printf("\nThe biggest number is : %d", big) ;}
hope this helps you... pls mark this as brainliest
2.void main()
3.{
4.int a, b, c, big ;
5.printf("Enter three numbers : ") ;
6.scanf("%d %d %d", &a, &b, &c) ;
7.big = a > b ? (a > c ? a : c) : (b > c ? b : c)
8. printf("\nThe biggest number is : %d", big) ;}
hope this helps you... pls mark this as brainliest
Answered by
2
#include<iostream>
using namespace std;
void main()
{
int num1, num2, num3, result;
cout << "Enter three integers:\n";
cin >> num1 >> num2 >> num3;
result = (num1 > num2) ? (num1 > num3) ? num2 : num3 : (num2 > num3) ? num2 : num3;
cout << "Largest number is: " <<result;
}
Output:
Enter three numbers:
10
20
30
Largest number is :30.
Hope this helps!
using namespace std;
void main()
{
int num1, num2, num3, result;
cout << "Enter three integers:\n";
cin >> num1 >> num2 >> num3;
result = (num1 > num2) ? (num1 > num3) ? num2 : num3 : (num2 > num3) ? num2 : num3;
cout << "Largest number is: " <<result;
}
Output:
Enter three numbers:
10
20
30
Largest number is :30.
Hope this helps!
siddhartharao77:
:-)
Similar questions