# Help me in solving BIRYANI problem

### My code

``````#include <iostream>
using namespace std;

int main() {
return 0;
}

``````

Problem Link: BIRYANI Problem - CodeChef

Here we need to do multiplication
Once refer problem statement again and try it out once

////////////////////////////////////////////////////////////////////////

include
using namespace std;

int main() {
int t;// no of different different testcase
cin>>t;
while(t–)/*if(t== 0) ,means condition gets fail and it will stop calculating lets assume t=4; given on input
1st> after t-- >>>> t=3 ;
2nd> after t-- >>> t=2;
3rd > after t-- >>>> t=1;
4th> after t-- >>> t=0 ; where condition gets failed and loop will stop processing further.
/
{
int x,y;
cin>>x>>y;
int g= x
y;// multiply to findout total cost of biryani
cout<<g<<endl;//endl or"\n" to break line ;
}
return 0;
}

1 Like

I checked your profile where you had 115 ans correct through python and i think you are learning basic syntax of c++.
Hope your journey gows well   1 Like

include <bits/stdc++.h>
using namespace std;
define endl ‘\n’
define int long long
const int MOD = 1e9 + 7;
const int INF = LLONG_MAX >> 1;

signed main() {
ios::sync_with_stdio(false); cin.tie(NULL);
int x;
cin>>x;

return 0;

}

try this snippet hope it will help