No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hey what's up all! I'm hadziq i'm all about : ME : FAT | TALKATIVE | LAZY | HAVE SCARS | SHY | DON'T PLAY FOOTBALL | LOVE : ART | MUSIC | MAGAZINES | COMICS | INTERIOR | GADGETS | T-SHIRTS | TOYS | EVENTS | MONEY | ICE-CREAM HATE : COPYCAT | DRUGS |…
4 Posted Topics
#include <stdio.h> #include <stdlib.h> void main() { int salaryIn = 0.0; int years = 3; float salaryOut = 0.0; printf ("\nWhat is your salary (0 to stop)? RM" ,salaryIn) ; scanf ( "salaryIn" , salaryIn) ; do { do { printf ("\nYear " , years); for (double rate = .03; … | |
#include <stdio.h> int main() { char membershiptype; int purchase; //float monthly_reward; // enter membership type; printf("membership type: "); scanf("%c", &membershiptype); printf("Standard = S , Plus = P , Premium = A"); switch(membershiptype) { case 'S': printf("\n\nEnter the total monthly purchase :RM"); scanf("%d", &purchase); if (purchase < 75) printf("\nMonthly Reward :RM%.0f … | |
#include <stdio.h> int main (void) { //declare variables int sales = 0; int totalsales =0; double commission = 0.0; //enter input items printf("\nsales: "); scanf("%d", &totalsales); //determine whether the data is valid if (sales <= 0 && commission = -1); else if (sales <= 10000 && commission = sales*0.2); else … | |
i need help as soon as possible help me convert this to c program #include <iostream> #include <iomanip> using namespace std; int main() { //declare variables int totalCals = 0; int fatGrams = 0; int fatCals = 0; double fatPercent = 0.0; //enter input items cout << "Total calories: "; … |
The End.