Wisdom Materials
Home
About Us
Our Clients
Careers
Services
Education
Jobs
News
Business
Health
Astrology
Entertainment
RealEstate
Devotion
Contact Us
C Programs
/ Biggest Of 3 Numbers C Program
Program Name
Write a C Program for Biggest Of 3 Numbers C Program.
Theory
C Program is to add 3 numbers given by user.
Program Code
Copy Program Code
#include
int main() { int num1,num2,num3; printf("Enter three numbers\n"); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2&&num1>num3) printf("num1=%d is biggest",num1); else if(num2>num1&&num2>num3) printf("num2=%d is biggest",num2); else printf("num3=%d is biggest",num3); return 0; }
Input
Enter three numbers
9 6 3
Output
num1=9 is biggest
Online C Compiler (To copy paste and Run the c program)
Home
Back