Answer to Question #308214 in C for ahmed

Question #308214

Write a program that take two integers from the user and print the results of this equation:

Result = ((num1 + num2) * 3) – 10


1
Expert's answer
2022-03-09T01:35:08-0500
#include <stdio.h>


int main() {
    int num1, num2, result;


    printf("Please enter an integer: ");
    scanf("%d", &num1);
    printf("Please enter an integer: ");
    scanf("%d", &num2);


    result = ((num1 + num2)*3) - 10;
    printf("The result is %d\n", result);


    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS