This is the first part of a program for school. am only trying to get the first part working yet but am not having any joy. Any pointers where im gone wrong
#include <stdio.h>
int main(void){
/* int set [5] = {A1, A2, A3, A4, A5};*/
int i;
int A=0.90;
int B=1.20;
int C=1.10;
int D=0.75;
int E=1.01;
int selection;
int cost;
int payment;
int change;
int stock;
printf(" A B C D E\n ");
printf(" Mars Bounty Curly Wurly Toffee Crisp Double Decker\n ");
printf(" 2 2 2 2 2\n ");
printf(" €0.90 €1.20 €1.10 €0.75 €1.01\n");
printf("Please make your selection from the list above \n");
scanf("%d", &selection);
if (selection==A) {
printf("You have selected Mars. Please enter how much money you are inputing\n");
scanf("%d",&pay ment);}
if (payment == 0.90) {
printf("Please take your selection and thank you for your custom\n");}
else if (payment < 0.90){
printf("Please add some more coins \n");}
else if (payment > 0.90) {
payment - 0.90 == change;}
for (stock = 2; stock<2; stock--); {
}
#include <stdio.h>
int main(void){
/* int set [5] = {A1, A2, A3, A4, A5};*/
int i;
int A=0.90;
int B=1.20;
int C=1.10;
int D=0.75;
int E=1.01;
int selection;
int cost;
int payment;
int change;
int stock;
printf(" A B C D E\n ");
printf(" Mars Bounty Curly Wurly Toffee Crisp Double Decker\n ");
printf(" 2 2 2 2 2\n ");
printf(" €0.90 €1.20 €1.10 €0.75 €1.01\n");
printf("Please make your selection from the list above \n");
scanf("%d", &selection);
if (selection==A) {
printf("You have selected Mars. Please enter how much money you are inputing\n");
scanf("%d",&pay ment);}
if (payment == 0.90) {
printf("Please take your selection and thank you for your custom\n");}
else if (payment < 0.90){
printf("Please add some more coins \n");}
else if (payment > 0.90) {
payment - 0.90 == change;}
for (stock = 2; stock<2; stock--); {
}
Comment