0% found this document useful (0 votes)
62 views1 page

Algorithm01 PDF

Uploaded by

kaliman2010
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views1 page

Algorithm01 PDF

Uploaded by

kaliman2010
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

/******************************************************************************

* chp 2 Program 2 Sales Prediction

/******************************************************************************

*******************************************************************************/

#include <stdio.h>

#define PERCENT 0.23

int main()

float sales;

puts("Enter amount of sales: ");

scanf("%f",&sales);

float profit = sales * PERCENT;

puts("Your profit is: ");

printf("%f",profit);

return 0;

// Define all your prototypes functions.

You might also like