C/Caulculator.c

11 lines
235 B
C

#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;
}