🔒 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 :)
 
Status
Not open for further replies.

Similar threads

About this Thread

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

Trending Topics

Online now

Members online
1,142
Guests online
3,816
Total visitors
4,958

Forum statistics

Threads
2,290,827
Posts
29,066,894
Members
1,211,539
Latest member
ujugzky13
Back
Top