We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
#include<stdio.h>intmain(){intn;//printf("Enter the number of boxes : ");scanf("%d",&n);inta[n][3];inti;intj;intk;for(i=0;i<n;i++){for(j=0;j<3;j++){scanf("%d",&a[i][j]);}}for(i=0;i<n;i++){if(a[i][2]<41){k=a[i][0]*a[i][1]*a[i][2];printf("%d\n",k);}elsebreak;}return0;}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Boxes through a Tunnel
You are viewing a single comment's thread. Return to all comments →