Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  123
Language: C/C++
Code:
#include <stdio.h>
int main()
{
int x;
scanf("%d",&x);
int f=0;
if(x<0){
f=-1;}
else 
{if(x==0){
f=0;}
else{
f=4*x;}
}
printf("%d\n",f);
return 0;
}
Comments: