Algorithm:-
Step1:- Start
Step2:- Read num1,num2,big.
Step3:-check if num1>num2
Display big is num1.
else
Display big is num2.
Step4:- Print big.
Step5:-Exit.
Flowchart:-
Program:-
code:-
output:-
In this C program #include is preprocessor that is used to include library stdio.h (printf and scanf is the function of this library file).
To find big between two number so first store the two number into memory than apply operation so to store number use two variable that is num1 and num2 . int is the datatype it means that variable hold value without decimal.using decision making statement compare two variables num1 and num2 . because in this program two statement so use if else decision making statement.
Using printf function print the value of big number.
Then press CTRL+F9 to compile the code and enter the value of num1 and num2 in console screen result show on the console screen.
0 Comments