🔒 Closed Pa help po sa language C program

Status
Not open for further replies.

Gegekiller_02

Journeyman
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 :)
 
Tama po ba to lods?
Screenshot_2021-09-28-14-09-25-14.png
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 2
    Replies
  • 2K
    Views
  • 2
    Participants
Last reply from:
Gegekiller_02

Online now

Members online
895
Guests online
689
Total visitors
1,584

Forum statistics

Threads
2,276,945
Posts
28,973,258
Members
1,229,658
Latest member
hihiwae
Back
Top