SlideShare a Scribd company logo
1 of 1
Practical No.-4
Aim

:

To demonstrate the program for find greatest of three
numbers.

Source code :

#include<iostream.h>
#include<conio.h>
void main()
{
int a, b,c,greatest;
cout <<”Enter the three value of a,b,c”;
cin >>”a,b,c”
if(a>b)&&(a>c)
cout<<”greatest”<<greatest;
else if (b>a)&&(b>c)
cout<<”greatest”<<greatest;
else if (c>a)&&(c>b)
cout<<”greatest”<<greatest;
}

Output

:

Enter the three value of
A=10
B=15
C=25
greatest numbers is 25.

More Related Content

What's hot

A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA AKSHAY SACHAN
 
Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500ilsamaryum
 
Essence of the iterator pattern
Essence of the iterator patternEssence of the iterator pattern
Essence of the iterator patternMarkus Klink
 
IGraph a tool to analyze your network
IGraph a tool to analyze your networkIGraph a tool to analyze your network
IGraph a tool to analyze your networkPushpendra Tiwari
 
programming for programs solving using C language
programming for  programs solving using C languageprogramming for  programs solving using C language
programming for programs solving using C languagesushma chinta
 
Butterfly Counting in Bipartite Networks
Butterfly Counting in Bipartite NetworksButterfly Counting in Bipartite Networks
Butterfly Counting in Bipartite NetworksSeyed-Vahid Sanei-Mehri
 
Mini project title prime number generator
Mini project title prime number generatorMini project title prime number generator
Mini project title prime number generatorMd. Asad Chowdhury Dipu
 
Write a program to perform translation.
 Write a program to perform translation. Write a program to perform translation.
Write a program to perform translation.Shobhit Saxena
 
Digital logic circuit
Digital logic circuit Digital logic circuit
Digital logic circuit Prabhu R
 
C mcq practice test 4
C mcq practice test 4C mcq practice test 4
C mcq practice test 4Aman Kamboj
 
Write a program to perform translation
Write a program to perform translationWrite a program to perform translation
Write a program to perform translationShobhit Saxena
 
7. Pointer Arithmetic
7. Pointer Arithmetic7. Pointer Arithmetic
7. Pointer ArithmeticGem WeBlog
 
10 - Scala. Co-product type (sum type)
10 - Scala. Co-product type (sum type)10 - Scala. Co-product type (sum type)
10 - Scala. Co-product type (sum type)Roman Brovko
 

What's hot (20)

A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
 
Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500
 
Essence of the iterator pattern
Essence of the iterator patternEssence of the iterator pattern
Essence of the iterator pattern
 
Concept of c
Concept of cConcept of c
Concept of c
 
C exam
C examC exam
C exam
 
IGraph a tool to analyze your network
IGraph a tool to analyze your networkIGraph a tool to analyze your network
IGraph a tool to analyze your network
 
programming for programs solving using C language
programming for  programs solving using C languageprogramming for  programs solving using C language
programming for programs solving using C language
 
Butterfly Counting in Bipartite Networks
Butterfly Counting in Bipartite NetworksButterfly Counting in Bipartite Networks
Butterfly Counting in Bipartite Networks
 
Mini project title prime number generator
Mini project title prime number generatorMini project title prime number generator
Mini project title prime number generator
 
Lecture 1 python arithmetic (ewurc)
Lecture 1 python arithmetic (ewurc)Lecture 1 python arithmetic (ewurc)
Lecture 1 python arithmetic (ewurc)
 
Write a program to perform translation.
 Write a program to perform translation. Write a program to perform translation.
Write a program to perform translation.
 
Adder Presentation
Adder PresentationAdder Presentation
Adder Presentation
 
Asymptotic Notation
Asymptotic NotationAsymptotic Notation
Asymptotic Notation
 
Digital logic circuit
Digital logic circuit Digital logic circuit
Digital logic circuit
 
C mcq practice test 4
C mcq practice test 4C mcq practice test 4
C mcq practice test 4
 
Write a program to perform translation
Write a program to perform translationWrite a program to perform translation
Write a program to perform translation
 
7. Pointer Arithmetic
7. Pointer Arithmetic7. Pointer Arithmetic
7. Pointer Arithmetic
 
Compiling fµn language
Compiling fµn languageCompiling fµn language
Compiling fµn language
 
10 - Scala. Co-product type (sum type)
10 - Scala. Co-product type (sum type)10 - Scala. Co-product type (sum type)
10 - Scala. Co-product type (sum type)
 
Programacion
ProgramacionProgramacion
Programacion
 

Viewers also liked

Teaching Bioinformatics data analysis using Medicago truncatula as a model - ...
Teaching Bioinformatics data analysis using Medicago truncatula as a model - ...Teaching Bioinformatics data analysis using Medicago truncatula as a model - ...
Teaching Bioinformatics data analysis using Medicago truncatula as a model - ...Vivek Krishnakumar
 
Gözümüz ikinci ekranlarda
Gözümüz ikinci ekranlardaGözümüz ikinci ekranlarda
Gözümüz ikinci ekranlardamobilike
 
Οι ανακαλυψεις
Οι ανακαλυψειςΟι ανακαλυψεις
Οι ανακαλυψειςan kar
 
001 belingieri-economia periodo-militar
001 belingieri-economia periodo-militar001 belingieri-economia periodo-militar
001 belingieri-economia periodo-militarClaudia Sá de Moura
 
Resources for Families
Resources for FamiliesResources for Families
Resources for Familiesnailawissa
 
O porto nas aguarelas de dina de souza (1964 )
O porto nas aguarelas de dina de souza (1964   )O porto nas aguarelas de dina de souza (1964   )
O porto nas aguarelas de dina de souza (1964 )Jose Pinto Cardoso
 
Enhance Worldwide Q1 2016 newsletter
Enhance Worldwide Q1 2016 newsletterEnhance Worldwide Q1 2016 newsletter
Enhance Worldwide Q1 2016 newsletterHeather Mahardy
 
Design, Testing and Validation of a Scale Model Semisubmersible Offshore Wind...
Design, Testing and Validation of a Scale Model Semisubmersible Offshore Wind...Design, Testing and Validation of a Scale Model Semisubmersible Offshore Wind...
Design, Testing and Validation of a Scale Model Semisubmersible Offshore Wind...Laura Rolo
 
Erick Nistal -Resume D2
Erick Nistal -Resume D2Erick Nistal -Resume D2
Erick Nistal -Resume D2Erick Nistal
 
Production schedule
Production scheduleProduction schedule
Production schedulealferentinos
 

Viewers also liked (13)

Teaching Bioinformatics data analysis using Medicago truncatula as a model - ...
Teaching Bioinformatics data analysis using Medicago truncatula as a model - ...Teaching Bioinformatics data analysis using Medicago truncatula as a model - ...
Teaching Bioinformatics data analysis using Medicago truncatula as a model - ...
 
Practical no 2
Practical no 2Practical no 2
Practical no 2
 
Gözümüz ikinci ekranlarda
Gözümüz ikinci ekranlardaGözümüz ikinci ekranlarda
Gözümüz ikinci ekranlarda
 
Practical no 5
Practical no 5Practical no 5
Practical no 5
 
Οι ανακαλυψεις
Οι ανακαλυψειςΟι ανακαλυψεις
Οι ανακαλυψεις
 
001 belingieri-economia periodo-militar
001 belingieri-economia periodo-militar001 belingieri-economia periodo-militar
001 belingieri-economia periodo-militar
 
Resources for Families
Resources for FamiliesResources for Families
Resources for Families
 
O porto nas aguarelas de dina de souza (1964 )
O porto nas aguarelas de dina de souza (1964   )O porto nas aguarelas de dina de souza (1964   )
O porto nas aguarelas de dina de souza (1964 )
 
Enhance Worldwide Q1 2016 newsletter
Enhance Worldwide Q1 2016 newsletterEnhance Worldwide Q1 2016 newsletter
Enhance Worldwide Q1 2016 newsletter
 
Design, Testing and Validation of a Scale Model Semisubmersible Offshore Wind...
Design, Testing and Validation of a Scale Model Semisubmersible Offshore Wind...Design, Testing and Validation of a Scale Model Semisubmersible Offshore Wind...
Design, Testing and Validation of a Scale Model Semisubmersible Offshore Wind...
 
Advanced ic engines part-i fmcet
Advanced ic engines part-i fmcetAdvanced ic engines part-i fmcet
Advanced ic engines part-i fmcet
 
Erick Nistal -Resume D2
Erick Nistal -Resume D2Erick Nistal -Resume D2
Erick Nistal -Resume D2
 
Production schedule
Production scheduleProduction schedule
Production schedule
 

Practical no 4

  • 1. Practical No.-4 Aim : To demonstrate the program for find greatest of three numbers. Source code : #include<iostream.h> #include<conio.h> void main() { int a, b,c,greatest; cout <<”Enter the three value of a,b,c”; cin >>”a,b,c” if(a>b)&&(a>c) cout<<”greatest”<<greatest; else if (b>a)&&(b>c) cout<<”greatest”<<greatest; else if (c>a)&&(c>b) cout<<”greatest”<<greatest; } Output : Enter the three value of A=10 B=15 C=25 greatest numbers is 25.