All pastes #421503 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-02 21:30 UTC
rendered paste body
#include <stdio.h>
#include <math.h>

int main(int argc, char* argv[])
{
	int value1,value2;
	value1 = (int)argv[1];
	value2 = (int)argv[2];
	

  //printf("Enter a number: ");
  //scanf("%d",&value1);

  //printf("Enter another number: ");
  //scanf("%d",&value2);

  printf("Sum of input: %d \n", value1+value2);
  printf("Multiplication of input: %d \n", value1*value2);
  printf("Division of input: %0.0f \n", ((float)value1/value2));
  printf("Mod of input: %d \n", value1%value2);
  printf("Exponential/Power of input: %0.0f \n", (float)pow(value1,value2));
}