programming is not so easy for me but im trying to be a good programmer someday
i need more practice to develope my masterpiece hehehe!!
i have here a sample code its a simple program using C programming
#include <stdio.h>
#include <conio.h>
Int main()
{
int total_sales,goods_cost,expense,Profit;
Clrscr();
Printf("Input total sales");
Scanf("%d",total_sales);
Printf("Input goods cost");
Scanf("%d",&goods_cost);
Profit=total_sales-(goods_cost+expenses);
If(profit>0)printf("You are earning");
If(profit<0)printf("You are losing");
If(profit==0)printf("You are not earning and you are not losing");
Getch();
Return 0;
}
Example:.
you input your total sales = 3000
you input your goods cost=1000
you input your expense=500
OUTPUT:
"you are earning"
it just a simple program for a biggener like me hope u like it ^^
Walang komento:
Mag-post ng isang Komento