Read two numbers from keyboard and find maximum of them?

Answer Posted / venugopal

#include<stdio.h>
#include<conio.h>

main()
{
int first,sec;
clrscr();
printf("enter two no's");
scanf("%d %i",&first,&sec);

if(first>sec)
{
printf("%i is big",first);
}
else
printf("%d is big",sec);
getch();
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is structure pointer in c?

565


What is the argument of a function in c?

567


In C language, a variable name cannot contain?

729


What is bss in c?

593


Write a function that will take in a phone number and output all possible alphabetical combinations

592






What are the properties of union in c?

577


What is the difference between pure virtual function and virtual function?

641


How can I do peek and poke in c?

610


What does the message "automatic aggregate intialization is an ansi feature" mean?

684


How many data structures are there in c?

609


What are the types of unary operators?

651


Explain how do you print an address?

651


What is the advantage of c?

607


What is scope of variable in c?

551


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1508