draw a flowchart and write an algorithm and a C program to find maximum between two numbers
Answers
Answered by
1
Answer:
#include<stdio.h>
int main()
{
int num1, num2;
scanf(“%d %d”,&num1,&num2);
if(num1 > num2)
{
printf(“%d is greater”,num1);
}
else
{
printf(“%d is greater”,num2);
}
return 0;
}
Explanation:
With the help of program you can easily write the flowchart and algorithm.
Similar questions