UrbanPro

Learn C Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Could you write a program in C to display the greatest among a, b, c, and d, which takes only integer values?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

Tutor

There are two ways to do it after getting input from the user: 1. If elseif else 2. Conditional operator 1. if (a>b && a>c) { Print a ; } elseif(b>a && b>c) { Print b; } else { Print c; } 2. Using conditional operator number=a > b ? (a > c ? a :...
read more
There are two ways to do it after getting input from the user: 1. If elseif else 2. Conditional operator 1. if (a>b && a>c) { Print a ; } elseif(b>a && b>c) { Print b; } else { Print c; } 2. Using conditional operator number=a > b ? (a > c ? a : c) : (b > c ? b : c) ; Print number ; read less
Comments

Computer Science C++, JAVA, Data Structure

#include "stdio.h" void main() { int a,b,c,d,e,; printf("\nEnter four integer numbers:"); scanf("%d%d%d%d",&a,&b,&c,&d); //use the statement given in picture for gretest among a,b,c,d using ternary operator printf("\n Gretest number is:",e); } Thanks Regards
Comments

Tutor

Use conditional operators
Comments

View 1 more Answers

Related Questions

hi guyz! i am dng my 2nd yr in engg n i wanna strengthen my C n C++ prgmmng skills........which s d best way for it?? can u suggest me sum gud books to refer??
you can study the online websites and also solve the output,error oriented program in LET US C book by yaswant
Logeshwari
Which is the best C language IDE/compiler for Windows?
For Windows, one of the widely regarded C language IDEs is Microsoft Visual Studio. It provides a comprehensive development environment with features like code highlighting, IntelliSense for smart code...
Deepashri
0 0
5
Which book is good for C language?
Let Us C by writer-- Yashavant P. Kanetkar (Author)
Rajendra
How do I get 6 power 13 in c language?
By using pow(6, 13). Don't forget to import math.h header file
Tanush
0 0
5
How much this course?
instead of checking the fee, its good to find a tutor with genuine experience & interest to teach....
Subramani

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

All About Programming And A Good Programmer.
Hi, This is my first lesson for you guys. Hope you enjoy reading it. In recent community questions, I found many people wanted to be good programmers, or wanted to have good hands on certain language,...

Advantages of C++ Language
Advantages of C++ - C++ is a profoundly convenient dialect and is frequently the dialect of decision for multi-gadget, multi-stage application advancement. - C++ is a protest situated programming dialect...

Array vs Linked List
Array Linked List Accessing element is easy. Accessing element is difficult compare to Array. Easy to use. Difficult to use. Memory is Fixed size. Memory is variable size. If...

Pointers and References
Are reference and pointers same? No. I have seen this confusion crumbling up among the student from the first day. So better clear out this confusion at thevery beginning. Pointers and reference...

4 Things Every Tech Startup Needs to Know About The Coaching Industry
Knowledge on any subject is widely available to those who wish to learn. However, just gathering knowledge from other people doesn’t guarantee results in business. Results come from applying what...

Looking for C Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for C Language Classes?

The best tutors for C Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C Language with the Best Tutors

The best Tutors for C Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more