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 userExplanation / 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;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.