TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Find largest value in C language
Krishna Rajput Singh
Apr 06
2016
Code
609
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
#include<stdio.h>
#include<conio.h>
main()
{
// this program user input and find the largest value of output
int
num1, num2;
printf(
"Enter the Value of num1\n"
);
//request to user enter input
scanf(
"%d"
,&num1);
printf(
"Enter the Value of num2\n"
);
scanf(
"%d"
,&num2);
//user input accept the value
if
(num1>num2)
//condition check is num1 is greater of num2
{
printf(
"The Largest Value is %d"
, num1);
// when true condtion of if then print num1 value
}
else
{
printf(
"The Largest Value is %d"
, num2);
// else is not any condition its only like statement
}
}
C
Find largest value