What's new

Pa help po sa language C program

Gegekiller_02

Established
Joined
Sep 27, 2021
Posts
41
Reaction
14
Hello po! Pwede patulong Activity namin sa programming. 1st year college po ako BSIT course.
Ito po yung binigay:
Write a program that would accept the number of bottles and cans then compute the amount of soda(liters)in the refrigerator. The bottle has two liters while the can is 12 oz.
 
#include <stdio.h>
int main() {
int bottles, cans;

printf("Numbers of Bottles (liters): ");
scanf("%d", &bottles);

printf("Numbers of Cans (oz): ");
scanf("%d", &cans);

float soda = bottles + (cans*0.0296);

printf("Amount of Soda(Liters) in the Refrigerator: %f", soda);

return 0;
}
ewn ko lng kung eto yan lods :)
 

Gegekiller_02

Established
Tama po ba to lods?
Screenshot_2021-09-28-14-09-25-14.png
 

Attachments

Top