// array-02
// write a program to enter price of 3 items & print their final cost with gst
#include <stdio.h>

int main() {
    
    float price[3];
    printf("Enter 3 prices : ");
    scanf("%f",&price[0]);
    scanf("%f",&price[1]);
    scanf("%f",&price[2]);
    
    printf("\ntotal price 1 : %f",price[0]+ (0.18*price[0]));
    printf("\ntotal price 1 : %f",price[1]+ (0.18*price[1]));
    printf("\ntotal price 1 : %f",price[2]+ (0.18*price[2]));
    
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: