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??

28th Feb 2019, 1:08 PM
Dhaval Taneja
Dhaval Taneja - avatar
3 Antworten
+ 1
Okay, I will try again with your method Thank you
28th Feb 2019, 2:10 PM
Dhaval Taneja
Dhaval Taneja - avatar
+ 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!.
28th Feb 2019, 2:16 PM
Dhaval Taneja
Dhaval Taneja - avatar
+ 1
Okay buddy :)
28th Feb 2019, 2:55 PM
Dhaval Taneja
Dhaval Taneja - avatar