0
Compiling problem
#include <stdio.h> int main() { int h, w, d, v; printf("\nEnter the value of height: "); scanf("%d", &h); printf("\nEnter the value of width: "); scanf("%d", &w); printf("\nEnter the value of depth: "); scanf("%d", &d); v=h*w*d; printf("\nThe Volume of cube is: %d", v); return 0; } When I run this code it asks for input at the beginning and then when I enter any number in it, then it executes the 4 printf statements and nothing else??
5 Respuestas
+ 1
Okay, I will try again with your method
Thank you
+ 1
Yes, It worked !
The only problem now is, I do not see the numbers which I entered, in the output.
But at least it shows the answer!.
+ 1
Okay buddy :)