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