Question

Write a C program for finding the largest number from the four given numbers.

26 Oct 2017
Answer :
Word Count : 144

#include<stdio.h>

void main()

{

int a,b,c,d;

printf("enter the four numbers : ");

scanf("%d%d%d%d",&a,&b,&c,&d);

//if first number is greater than second number

if(a>b)

{

//if first number is greater than third number

if(a>c)

{

//if first number is greater than fourth number

if(a>d)

printf("%d is greatest",a);

else

//fourth number is

__________ __________ ___ ______ ____.
_______ ___ ____ _______ __________ ______ _______ ___ _____ ______.
_________ ___ __________ _______ ______ _______ _______ ___ _________ ______.
_______ ___ _____ ________ ________ ___ __________ _______ ________ _____.
______ ____ ______ ___ ____ _____ __________.
_____ _______ ________ _______ ________ ___ ____.
_____ _____ _____ _____ ____ ____ _______.
___ __________ ______ ____ _____ ________ ___ _________ _____.
_________ ___ ________ __________ __________ ______ ____ ___ ______ _________ ____ _________.
______ __________ ______ _____ _______ ____ _______ _____ _______ ________ __________.
________ _______ _______ ____ _____ _______ ________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU CIT 1 2015 2016 - Write a C program for finding the largest number from the four given n | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→