Im doing an testing program. There will be 2 inputs, first number and second number.Check the first number if it is greater than or less if the first number is less to second number. The user will input again the "Enter second number", i dont know how should I do the do while in there. thanks
This is my code:
#include<stdio.h>
int main()
{
int number1,number2,total;
printf("Enter first number");
scanf("%d",&number1);
printf("Enter second number");
scanf("%d",&number2);
if(number1 > number2)
{
total = number1 - number2;
printf("%d",total);
}
else
{
printf("Number 1 is less than to number 2");
}
return 0;
}