Skip to content

#include<stdio.h> int main() { char type; int loop=1; int quantity, total; printf("Enter: B for burger\n, F for French fries\n, P for pizza\n and S for sandwiches\n"); scanf("%c", &type ); printf("Enter quantity "); scanf("%d", &quantity ); switch(type){ case 'B': printf("You chose burgers"); total=quantity*200; printf("%d", total); loop=0; break; case 'F': printf("you chose French fries "); total=quantity*50; printf("%d", total); loop=0; break; case'P': printf("you chose pizza"); total=quantity*500; printf("%d", total); loop=0; break; case 'S': printf("you chose sandwiches"); total=quantity*1150; printf("%d", total); loop=0; break; default: printf("invalid option "); break; } return 0; } #140

@nyirongochance4-ui

Description

@nyirongochance4-ui
No description provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions