Begin
Enter the two numbers
numbers to assing two variables(num1,num2)
create the another variable total
asing the total = num1+num2;
print the total variable.
End.
Using only the given functions Construct a program that will add 2 numbers. Use only the main function and use of printf() is not allowed.
Answer
Show Answer
intmain(void){
DisplayWithString("Total is: %d", Addition(12, 12);
return0;
}
Create a Function that will get a number as a user input using scanf and return it.
Answer
Show Answer
intGetInt(void){
intnum;
printf("\nEnter a Number: ");
scanf("%d", &num);
returnnum;
}
No using the get in function and above functions, Get 2 numbers from the user and show the total by adding them together. You can only edit the main function and use of scanf and printf inside the main function is not allowed.