C/Caulculator.c

12 lines
235 B
C
Raw Permalink Normal View History

#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("%d + %d = %d\n", 5, 2, 5+2);
printf("%d - %d = %d\n", 5, 2, 5-2);
printf("%d * %d = %d\n", 5, 2, 5*2);
printf("%d / %d = %d + %d / 2 \n", 5, 2, 5/2, 5 % 2);
return 0;
}