Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main()
- {
- ////////////////
- // Variaveis //
- ///////////////
- int x;
- int y;
- ////////////////
- // Constantes //
- ////////////////
- string x_value = "Escreva um valor para X:";
- string y_value = "Escreva um valor para Y:";
- string get_integer = "%d" ;
- string sum_total = "X + Y é igual a %d" ;
- ///////////////////////
- // Inicio de Seleção //
- ///////////////////////
- printf(x_value); scanf(get_integer, &x);
- printf(y_value); scanf(get_integer, &y);
- x = x + y;
- printf(sum_total, x);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement