#include <stdio.h>
int main ()
{
int purchase,member;
printf("enter the purchase amount ");
scanf("%d",&purchase);
printf("if u r member enter 1");
scanf("%d", &member);
if (member == 1) {
if (purchase > 100) {
printf("You got a 15% discount! :))) ");
} else {
printf("You got a 10% discount! buy more to get dis");
}
}
else
{
if (purchase>100){
printf("yyooou got 5%offf hech yea ");
}
else{
printf("Thanks for purchase pls visit us again haha ");
}
return 0;
}
I hope that you found this example code helpful! If you have any questions or if you would like to see more examples of code in action, feel free to search this blog or leave a comment below. I am always happy to help and provide more resources for those looking to improve their programming skills.


6 Comments
ReplyDeletecd\
cd xampp
cd mysql - go into the
cd bin (C:\xampp\mysql\bin>) result
mysql -h localhost -u root -p ( enter pass vanera aauxa )
eneter direct empty then
AANI PAXI - CREATE DATABASE Office_F;
SHOW DATABASES;
AANI USE OFFICE_F;
6 mumber suru aaba
ReplyDeleteINSERT INTO salary ( Eid, Basic_salary)
VALUES (101, 50000);
INSERT INTO salary ( Eid, Basic_salary)
VALUES (102, 33000);
INSERT INTO salary ( Eid, Basic_salary)
VALUES (103, 50000);
INSERT INTO salary ( Eid, Basic_salary)
VALUES (104, 65000);
INSERT INTO salary ( Eid, Basic_salary)
VALUES (105, 75000);
INSERT INTO salary ( Eid, Basic_salary)
VALUES (106, 65000);
INSERT INTO salary ( Eid, Basic_salary)
VALUES (107, 50000);
INSERT INTO salary ( Eid, Basic_salary)
VALUES (108, 33000);
INSERT INTO salary ( Eid, Basic_salary)
VALUES (109, 33000);
INSERT INTO salary ( Eid, Basic_salary)
VALUES (110, 50000);
SELECT * FROM salary;
YOOO THANKS FOR THIS PICE OF SHAT YOU UNGRATEFULL BASTER FUCK YOU NIGGA
ReplyDeleteye frick off mf
Deletebe grate full i saw this pice of shat not even good
ReplyDelete#include
ReplyDeletevoid add (int,int);
void main()
{
int a,b;
printf("enter the value of a&b:");
scanf("%d %d",&a,&b);
add(a,b);
}
void add (int x,int y)
{
int sum;
sum=x+y;
printf("the sum is %d",sum);
}