DEV Community

Diego Rêgo
Diego Rêgo

Posted on

How to do simple computer programs?

Hey, so i have the interest into starting with simple computer programs from zero, anyone knows how to help with it? i have no idea on how to do it... can anyone help me out with it, and given my circumstances i might have to try it out with such simple computer programs in from the zero.

`#include

include

int main(){

int main();

int num,num1,subtracao,multi,div,soma, mod;

printf("calculadora basica\n");
printf("Entre com 2 numeros a serem processados:");
scanf("%i%i", &num, &num1);

soma = num + num1;
subtracao   = num - num1;
multi   =  num * num1;
div   = num / num1;
mod = num % num1;

printf("soma e: %i\n", soma);
printf("subtracao e: %i\n", subtracao);
printf("multiplicao e: %i\n", multi);
printf("divisao e: %i\n", div);
printf("resto da divisao e: %i\n", mod);
return 0;
Enter fullscreen mode Exit fullscreen mode

}`

Top comments (0)