Thank for answer
but can you but Example
User Profile
Collapse
-
l late sorry
l have stop here l can't contening please help:
--------------------------------------------------------------------------
Code:# include<stdio.h> int main() { int Pepsi,Sprite,Shani,Fanta,a,x,b,c; float KD; Pepsi==Sprite==Shani==Fanta==0.100; printf("Please enter how much money you have in KD:\n"); scanf ("%f",&KD);
Leave a comment:
-
thanks for the hint but
l have problem in this parts:
----------------------------------------
You have 0.100 KD left in your account
Would you like to buy another beverage?
Yes =Press 1, No =press 2
1
----------------------------------------
You have 0.000 KD left in your account
------------------------------------------------------
how the program now this becose l...Leave a comment:
-
l have stop here l can't contening please help:
-------------------------------------------------------------------
Code:# include<stdio.h> int main() { int Pepsi , Sprite, Shani, Fanta,KD,a; printf("Please enter how much money you have in KD:\n"); scanf ("%d",&KD); printf("Please choose your beverage:\n"); printf("For Pepsi press 1\n");
Leave a comment:
-
l only beging to C langauge and l want to learn how do it the all
and thanksLeave a comment:
-
-
help me for this problem
I want it in C Language not C++
----------------------------------------------------
The beverages are:
Pepsi , Sprite, Shani, Fanta
--------------------------------------------------
[The next example doesn’t show how the program handles the error caused by the user so
as mentioned above be creative in handling the errors caused by the user]
-------------------------------------------------------------...
No activity results to display
Show More
Leave a comment: