#include<stdio.h> int main(){ int cp=1000; int sp=1500; int profit=sp-cp; int loss=cp-sp; printf("profit= %d\n",profit); printf("Loss= %d\n",loss); }
To embed this project on your website, copy the following code and paste it into your website's HTML: