Skip to content

Instantly share code, notes, and snippets.

@shohan4556
Created October 26, 2014 04:16
Show Gist options
  • Save shohan4556/651cb21171ce5115a44a to your computer and use it in GitHub Desktop.
Save shohan4556/651cb21171ce5115a44a to your computer and use it in GitHub Desktop.
uva 10071
/*------------------------------------------------*/
//Problem Setter: Shahriar Manzoor
//Uva Problem No: 10071
//Problem Name : Back To The High School Physics
//Author : Shohanur Rahaman
//University : City University
//E-mail : [email protected]
//N.B: While Submit the code erase all the coments above
/*-----------------------------------------------*/
#include<stdio.h>
int main()
{
int v,t;
while(scanf("%d %d",&v,&t)==2){
if(v>=-100 && v<=100 && t>=0 & t<=200){
printf("%d\n",2*v*t);
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment