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
Why c language is called c?
How can you tell whether a program was compiled using c versus c++?
What do you mean by command line argument?
c program for searching a student details among 10 student details
How can I get the current date or time of day in a c program?
What is meant by high-order and low-order bytes?
Write a program to reverse a string.
What is getch () for?
Where in memory are my variables stored?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
Explain how do you list a file’s date and time?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Is flag a keyword in c?
Can a pointer point to null?