fork download
  1. #include<stdio.h>
  2. #include<math.h>
  3.  
  4. int main()
  5.  
  6.  
  7.  
  8. {
  9.  
  10. int a,n,sum,number;
  11.  
  12.  
  13.  
  14. sum=1;
  15.  
  16. for(n=1;n<=4;++n)
  17. {
  18.  
  19. printf("( %d ) : ",n);
  20.  
  21. scanf(" %d",&a);
  22.  
  23. sum=sum*a;
  24.  
  25. }
  26.  
  27.  
  28. printf("%d",sum);
  29.  
  30.  
  31.  
  32. return 0;
  33. }
Success #stdin #stdout 0s 5504KB
stdin
Standard input is empty
stdout
( 1 ) : ( 2 ) : ( 3 ) : ( 4 ) : -2005846079