Find the largest of any three numbers in C

Introduction

The following below describes how to write a program and draw a flow chart to find the largest of any three numbers.

Flow Chart:-

Find the largest of any three numbers in C

Flow chart to find the largest of any three numbers in C

Program:-

 #include <stdio.h>  
 #include <string.h>  
 void main(){  
      int x,y,z  
      chrscr();  
      printf("Enter any three numbers:");  
      scanf("%d%d%d",&x,&y,&z);  
      if(x>y){  
           if(x>z)  
                printf("%d is greatest",x)  
                else  
                     printf("%d is greatest",z)  
      }  
      else if(y>z)  
           printf("%d is greatest",y)  
      else  
           printf("%d is greatest",z)  
      getch();  
 }  

Summary

Thanks

Kailash Chandra Behera

An IT Professional with 12 years experience in development life cycle in windows, service and Web based application using Microsoft.Net technologies. Proven record of developing all phases of projects in Microsoft.Net technology from initiation to closure aligning with the company's Business objectives to drive process improvements, competitive advantage and bottom-line gains. -> Good exposure of independently working and developing multiple projects ->Committed to efficient and effective development of projects in a fast-paced and deadline driver environment. Skill :- Develop and design projects in various technologies of Microsoft Technology. Total IT Experience- 13+

Previous Post Next Post

نموذج الاتصال