start king
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#include "stdlib.h"
|
||||
#include "stdio.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
float height, length, width, volume, weight;
|
||||
printf("Enter height of box: ");
|
||||
scanf("%f", &height);
|
||||
printf("Enter length of box: ");
|
||||
scanf("%f", &length);
|
||||
printf("Enter width of box: ");
|
||||
scanf("%f", &width);
|
||||
|
||||
volume = height * length * width;
|
||||
weight = (volume + 165) / 166;
|
||||
|
||||
printf("Dimensions: %fx%fx%f\n", length, width, height);
|
||||
printf("Volume: %f\n", volume);
|
||||
printf("Weight: %f\n", weight);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#include "stdio.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf("To C, or not to C: that is the question.\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user