#include <stdio.h> int main () { int n, f,a,b,c; scanf("%d",&n); while (n--) { int premium=0; scanf("%d",&f); while (f--) { scanf("%d%d%d",&a,&b,&c); premium= premium+(a*c); } printf("%d\n",premium); } return 0; }
Thursday, April 14, 2016
Unknown
Studying at Shahjalal University of Science and Technology, Sylhet.
Subscribe to:
Post Comments (Atom)
Why there is no comment in the program?
ReplyDeleteIt may help one for better understanding