All pastes #420363 Raw Edit

Unnamed

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

int main()
{
  int value1,value2;

  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: %f \n", (float)(value1/value2));
  printf("Mod of input: %d \n", value1%value2);
  printf("Exponential/Power of input: %f \n", (float)pow(value1,value2));
}