Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write a program that stores the result os a sale variable multiplied by a profit

ID: 3769583 • Letter: W

Question

write a program that stores the result os a sale variable multiplied by a profit variable into a third variable named netsales , sales and profit values must be entered by the user write a program that stores the result os a sale variable multiplied by a profit variable into a third variable named netsales , sales and profit values must be entered by the user write a program that stores the result os a sale variable multiplied by a profit variable into a third variable named netsales , sales and profit values must be entered by the user

Explanation / Answer

#include<stdio.h>
#include<conio.h>

int main(){
  
    double netsales,profit,sales;
  
    printf("Enter the sales value");
    scanf("%lf",&sales);
    printf("Enter profit value");
    scanf("%lf",&profit);
  
    netsales=sales*profit;
  
    printf("Netsales = %.4lf",netsales);
  
    getch();
    return 0;
}