{"id":21291,"date":"2021-06-23T12:52:32","date_gmt":"2021-06-23T12:52:32","guid":{"rendered":"https:\/\/jmdtutor.com\/program-examples\/?page_id=21291"},"modified":"2021-06-23T13:01:38","modified_gmt":"2021-06-23T13:01:38","slug":"c-program-to-calculate-profit-and-loss-on-a-transaction","status":"publish","type":"page","link":"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction\/","title":{"rendered":"C program to calculate profit and loss on a transaction"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"21291\" class=\"elementor elementor-21291\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4964f97 elementor-section-stretched elementor-section-height-min-height elementor-section-boxed elementor-section-height-default elementor-section-items-middle\" data-id=\"4964f97\" data-element_type=\"section\" data-settings=\"{&quot;stretch_section&quot;:&quot;section-stretched&quot;,&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t\t<div class=\"elementor-background-overlay\"><\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-23ed2a1\" data-id=\"23ed2a1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bcf26ba elementor-widget elementor-widget-heading\" data-id=\"bcf26ba\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">C program to calculate profit and loss on a transaction<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5f0fb94 elementor-widget elementor-widget-shortcode\" data-id=\"5f0fb94\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><nav aria-label=\"breadcrumbs\">\n            <div class=\"breadcrumb-container theme1\">\n                <ol>\n                                    <\/ol>\n            <\/div>\n        <\/nav>    <script type=\"application\/ld+json\">\n        {\n            \"@context\": \"http:\/\/schema.org\",\n            \"@type\": \"BreadcrumbList\",\n            \"itemListElement\": [\n                            ]\n        }\n    <\/script>\n    <style type=\"text\/css\">\n        .breadcrumb-container {\n            font-size: 13px;\n        }\n\n        .breadcrumb-container ul {\n            margin: 0;\n            padding: 0;\n        }\n\n        .breadcrumb-container li {\n            box-sizing: unset;\n            display: inline-block;\n            margin: 0;\n            padding: 0;\n        }\n\n        .breadcrumb-container li a {\n            box-sizing: unset;\n            padding: 0 10px;\n        }\n\n        .breadcrumb-container {\n                    }\n\n        .breadcrumb-container li a {\n                    }\n\n        .breadcrumb-container li .separator {\n                    }\n\n        .breadcrumb-container li:last-child .separator {\n            display: none;\n        }\n    <\/style>\n    <style type=\"text\/css\">\n        .breadcrumb-container.theme1 li {\n            margin: 0;\n            padding: 0;\n        }\n        .breadcrumb-container.theme1 a {\n            background: ;\n            display: inline-block;\n            margin: 0 5px;\n            padding: 5px 10px;\n            text-decoration: none;\n        }\n    <\/style>\n        <style type=\"text\/css\">\n        .breadcrumb-container{}\r\n.breadcrumb-container ul{}\r\n.breadcrumb-container li{}\r\n.breadcrumb-container a{}\r\n.breadcrumb-container .separator{}\r\n    <\/style>\n    <script>\n            <\/script>\n<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-46b268f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"46b268f\" data-element_type=\"section\">\n\t\t\t\t\t\t\t<div class=\"elementor-background-overlay\"><\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-c7c4855\" data-id=\"c7c4855\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f95744f elementor-widget elementor-widget-wp-widget-nav_menu\" data-id=\"f95744f\" data-element_type=\"widget\" data-widget_type=\"wp-widget-nav_menu.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h5>Related Topics<\/h5><div class=\"menu-c-programming-container\"><ul id=\"menu-c-programming\" class=\"menu\"><li id=\"menu-item-19934\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-19934\"><a href=\"https:\/\/jmdtutor.com\/program-examples\/basic-c-program-example-with-source-code\">Basic Programs Examples<\/a><\/li>\n<li id=\"menu-item-19935\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-19935\"><a href=\"https:\/\/jmdtutor.com\/program-examples\/conditional-programs-examples-with-code\">Conditional  Programs Examples<\/a><\/li>\n<li id=\"menu-item-19936\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-19936\"><a href=\"https:\/\/jmdtutor.com\/program-examples\/loop-programs-examples-with-code\">Looping  ( For, while, do-while) Programs Examples<\/a><\/li>\n<li id=\"menu-item-19937\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-19937\"><a href=\"#\">Function  Programs Examples<\/a><\/li>\n<li id=\"menu-item-19938\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-19938\"><a href=\"#\">Array Programs in C With  Example<\/a><\/li>\n<li id=\"menu-item-19939\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-19939\"><a href=\"#\">Pointer  Programs in C With  Example<\/a><\/li>\n<li id=\"menu-item-19940\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-19940\"><a href=\"#\">String Programs in C With Example<\/a><\/li>\n<li id=\"menu-item-19941\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-19941\"><a href=\"#\">Sorting Programs in C With  Example<\/a><\/li>\n<li id=\"menu-item-19942\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-19942\"><a href=\"#\">File Handling Programs in C With  Example<\/a><\/li>\n<li id=\"menu-item-19943\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-19943\"><a href=\"#\">Structure and Union Programs in C With Example<\/a><\/li>\n<\/ul><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-66 elementor-top-column elementor-element elementor-element-5ee434c\" data-id=\"5ee434c\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-23ee990 elementor-widget elementor-widget-heading\" data-id=\"23ee990\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">C program to calculate profit and loss on a transaction<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-828141f elementor-widget elementor-widget-text-editor\" data-id=\"828141f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p style=\"font-size: 16px;\">Q:-<strong>Write a C program to calculate profit and loss on a transaction<br \/><\/strong><br \/>This C program to calculate profit or loos helps the user to enter the actual amount and Sales Amount. Using those two values, this C Program will check whether the product is in profit or Loss using Else If.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b18bd02 elementor-widget elementor-widget-text-editor\" data-id=\"b18bd02\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre>#include&lt;stdio.h>\n#include&lt;conio.h>\nvoid main() \n{\n   int cp, sp;  \n clrscr(); \n \n    printf(\"Enter the cost price of the product\\n\");  \n    scanf(\"%d\", &cp);  \n  \n    printf(\"Enter the selling price of the product\\n\");  \n    scanf(\"%d\", &sp);  \n  \n    if(sp > cp)  \n    {  \n        printf(\"Your profit is %d\\n\", (sp-cp));  \n    }  \n    else if(cp > sp)  \n    {  \n        printf(\"Loss Incurred is %d\\n\", (cp-sp));  \n    }  \n    else  \n    {  \n        printf(\"Neither profit, nor loss\\n\");  \n    }  \ngetch();\n }<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8829257 elementor-widget elementor-widget-heading\" data-id=\"8829257\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Output<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3f20da6 elementor-align-center elementor-widget elementor-widget-button\" data-id=\"3f20da6\" data-element_type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"#\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Download Code<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8bce24e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8bce24e\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7afa2c0\" data-id=\"7afa2c0\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fc37181 elementor-widget elementor-widget-text-editor\" data-id=\"fc37181\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>We ask the user to enter cost price as well as selling price. If selling price is more than cost price, then the seller is in profit. If the cost price is more than selling price, then the seller incurred loss.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-0813ad1\" data-id=\"0813ad1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-401e0d6 elementor-widget elementor-widget-video\" data-id=\"401e0d6\" data-element_type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=kO1rDTiOzKY&quot;,&quot;lazy_load&quot;:&quot;yes&quot;,&quot;loop&quot;:&quot;yes&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-db64452 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"db64452\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-192ebf0\" data-id=\"192ebf0\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-5f20373\" data-id=\"5f20373\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-03db708 elementor-widget elementor-widget-image\" data-id=\"03db708\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.youtube.com\/user\/jmdtutor\" target=\"_blank\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"227\" height=\"67\" src=\"https:\/\/jmdtutor.com\/program-examples\/wp-content\/uploads\/2021\/06\/download.png\" class=\"attachment-full size-full wp-image-19472\" alt=\"\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>C program to calculate profit and loss on a transaction C program to calculate profit and loss on a transaction Q:-Write a C program to calculate profit and loss on a transactionThis C program to calculate profit or loos helps the user to enter the actual amount and Sales Amount. Using those two values, this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-21291","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C program to calculate profit and loss on a transaction | program examples<\/title>\n<meta name=\"description\" content=\"C program to calculate profit and loss on a transaction, calculate profit and loss on a transaction in c programming\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C program to calculate profit and loss on a transaction | program examples\" \/>\n<meta property=\"og:description\" content=\"C program to calculate profit and loss on a transaction, calculate profit and loss on a transaction in c programming\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction\/\" \/>\n<meta property=\"og:site_name\" content=\"Programming Example\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-23T13:01:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jmdtutor.com\/program-examples\/wp-content\/uploads\/2021\/06\/download.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction\/\",\"url\":\"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction\",\"name\":\"C program to calculate profit and loss on a transaction | program examples\",\"isPartOf\":{\"@id\":\"https:\/\/jmdtutor.com\/program-examples\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jmdtutor.com\/program-examples\/wp-content\/uploads\/2021\/06\/download.png\",\"datePublished\":\"2021-06-23T12:52:32+00:00\",\"dateModified\":\"2021-06-23T13:01:38+00:00\",\"description\":\"C program to calculate profit and loss on a transaction, calculate profit and loss on a transaction in c programming\",\"breadcrumb\":{\"@id\":\"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction#primaryimage\",\"url\":\"https:\/\/jmdtutor.com\/program-examples\/wp-content\/uploads\/2021\/06\/download.png\",\"contentUrl\":\"https:\/\/jmdtutor.com\/program-examples\/wp-content\/uploads\/2021\/06\/download.png\",\"width\":227,\"height\":67},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jmdtutor.com\/program-examples\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C program to calculate profit and loss on a transaction\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jmdtutor.com\/program-examples\/#website\",\"url\":\"https:\/\/jmdtutor.com\/program-examples\/\",\"name\":\"Programming Example\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/jmdtutor.com\/program-examples\/#\/schema\/person\/21ab0b38c069fc6f5048b7c110bb9f3b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jmdtutor.com\/program-examples\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/jmdtutor.com\/program-examples\/#\/schema\/person\/21ab0b38c069fc6f5048b7c110bb9f3b\",\"name\":\"programming\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jmdtutor.com\/program-examples\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/418de3c2f51a14d3bcc45c5d4f10ca5678793d189104819a418f79cbba5229b1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/418de3c2f51a14d3bcc45c5d4f10ca5678793d189104819a418f79cbba5229b1?s=96&d=mm&r=g\",\"caption\":\"programming\"},\"logo\":{\"@id\":\"https:\/\/jmdtutor.com\/program-examples\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/jmdtutor.com\/program-examples\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C program to calculate profit and loss on a transaction | program examples","description":"C program to calculate profit and loss on a transaction, calculate profit and loss on a transaction in c programming","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction\/","og_locale":"en_US","og_type":"article","og_title":"C program to calculate profit and loss on a transaction | program examples","og_description":"C program to calculate profit and loss on a transaction, calculate profit and loss on a transaction in c programming","og_url":"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction\/","og_site_name":"Programming Example","article_modified_time":"2021-06-23T13:01:38+00:00","og_image":[{"url":"https:\/\/jmdtutor.com\/program-examples\/wp-content\/uploads\/2021\/06\/download.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction\/","url":"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction","name":"C program to calculate profit and loss on a transaction | program examples","isPartOf":{"@id":"https:\/\/jmdtutor.com\/program-examples\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction#primaryimage"},"image":{"@id":"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction#primaryimage"},"thumbnailUrl":"https:\/\/jmdtutor.com\/program-examples\/wp-content\/uploads\/2021\/06\/download.png","datePublished":"2021-06-23T12:52:32+00:00","dateModified":"2021-06-23T13:01:38+00:00","description":"C program to calculate profit and loss on a transaction, calculate profit and loss on a transaction in c programming","breadcrumb":{"@id":"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction#primaryimage","url":"https:\/\/jmdtutor.com\/program-examples\/wp-content\/uploads\/2021\/06\/download.png","contentUrl":"https:\/\/jmdtutor.com\/program-examples\/wp-content\/uploads\/2021\/06\/download.png","width":227,"height":67},{"@type":"BreadcrumbList","@id":"https:\/\/jmdtutor.com\/program-examples\/c-program-to-calculate-profit-and-loss-on-a-transaction#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jmdtutor.com\/program-examples\/"},{"@type":"ListItem","position":2,"name":"C program to calculate profit and loss on a transaction"}]},{"@type":"WebSite","@id":"https:\/\/jmdtutor.com\/program-examples\/#website","url":"https:\/\/jmdtutor.com\/program-examples\/","name":"Programming Example","description":"","publisher":{"@id":"https:\/\/jmdtutor.com\/program-examples\/#\/schema\/person\/21ab0b38c069fc6f5048b7c110bb9f3b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jmdtutor.com\/program-examples\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/jmdtutor.com\/program-examples\/#\/schema\/person\/21ab0b38c069fc6f5048b7c110bb9f3b","name":"programming","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jmdtutor.com\/program-examples\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/418de3c2f51a14d3bcc45c5d4f10ca5678793d189104819a418f79cbba5229b1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/418de3c2f51a14d3bcc45c5d4f10ca5678793d189104819a418f79cbba5229b1?s=96&d=mm&r=g","caption":"programming"},"logo":{"@id":"https:\/\/jmdtutor.com\/program-examples\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/jmdtutor.com\/program-examples\/"]}]}},"_links":{"self":[{"href":"https:\/\/jmdtutor.com\/program-examples\/wp-json\/wp\/v2\/pages\/21291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jmdtutor.com\/program-examples\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/jmdtutor.com\/program-examples\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/jmdtutor.com\/program-examples\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jmdtutor.com\/program-examples\/wp-json\/wp\/v2\/comments?post=21291"}],"version-history":[{"count":22,"href":"https:\/\/jmdtutor.com\/program-examples\/wp-json\/wp\/v2\/pages\/21291\/revisions"}],"predecessor-version":[{"id":21316,"href":"https:\/\/jmdtutor.com\/program-examples\/wp-json\/wp\/v2\/pages\/21291\/revisions\/21316"}],"wp:attachment":[{"href":"https:\/\/jmdtutor.com\/program-examples\/wp-json\/wp\/v2\/media?parent=21291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}