User Tools

Site Tools


user:adahmane:portfolio:unix5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
user:adahmane:portfolio:unix5 [2013/12/14 16:38] adahmaneuser:adahmane:portfolio:unix5 [2013/12/14 16:38] (current) adahmane
Line 1: Line 1:
  
 +
 +
 +
 +== I actually made four programs with this code by making a small change with each. I now have a separate program for addition, subtraction, multiplication, and division! ==
 +
 +
 +<code c>
 +#include <stdio.h>
 +#include <stdlib.h>
 +#include <math.h>
 +
 +int main (int argc, char **argv)
 +{
 +        int i,j;
 +        scanf("%d%", &j);
 +        i=atoi(*(argv+1));
 +        printf("%d\n", (j^i));
 +        return(0);
 +}
 +</code>