My issue
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
return 0;
}
Problem Link: BIRYANI Problem - CodeChef
#include <iostream>
using namespace std;
int main() {
// your code goes here
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= xy;// multiply to findout total cost of biryani
cout<<g<<endl;//endl or"\n" to break line ;
}
return 0;
}
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