My teacher gave me an assignment:
Write a program to input retail price of a product. If a 6.5% discount is given to a customer, then find and print the selling price.
Additional Details: I'm new to programming. I haven't learned any functions except printf() and Scanf().
Please write the program using only these functions. I have done it, thanks for helping.
#include <stdio.h>
main()
{
int retail_price, selling_price, discount;
printf("Enter Retail Price of the product:-");
scanf("%d", &retail_price);
discount=6.5;
selling_price=retail_price-discount;
printf("Selling Price of the product is:- %d",selling_price);
getch();
}