R

@Rueda

Imprimir el resultado de una suma con números negativos

C++
1 year ago
#include <iostream> using namespace std; int main () { int a = -55; int b = -22; int c = a + b ;// la suma cout << c << endl; return 0;

Imprimir el resultado de una división de 2 números

C++
1 year ago
#include <iostream> using namespace std; int main () { int u = 100; int y = 10; int t = u / y ;// DIVISIÓN cout << t << endl; return 0; }

Imprimir el resultado de una multiplicación de 2 números

C++
1 year ago
#include <iostream> using namespace std; int main () { int m = 90; int n = 200; int p = m * n ;// multiplicación cout << p << endl; return 0; }

Imprimir el resultado de una resta de 2 números

C++
1 year ago
#include <iostream> using namespace std; int main () { int r = 45; int j = 75; int x = r - j ;// la resta cout << x << endl; return 0; }

Imprimir el resultado de la suma de 2 números

C++
1 year ago
#include <iostream> using namespace std; int main () { int a = 7; int b = 89; int c = a + b ;// la suma cout << c << endl; return 0;

Imprime tres líneas

C++
1 year ago
#include <iostream> using namespace std; int main() { string nombre = "Joshua"; string Apellido = "Meléndez"; string Grupo = "Grupo II taller"; cout << nombre << endl; cout << Apellido << endl;

Imprimir un número flotante

C++
1 year ago
#include <iostream> using namespace std; int main(){ float Just = 67.9999999; // número flotante cout << Just << endl; return 0; }

Imprimir el resultado de una suma

C++
1 year ago
#include <iostream> using namespace std; int main() { int num1 = 45; int num2 = 9; int num3 = num1+num2; // esta es la suma cout << num3 << endl; }

imprimir múltiples valores en una línea

C++
1 year ago
#include <iostream> using namespace std; int main() { char GG = 'Z'; string Gaga = "POKER FACE"; int Ra = 4; cout << Gaga << GG << Ra << endl; return 0;

Imprimir una cadena de texto

C++
1 year ago
#include <iostream> using namespace std; int main() { string tracka = "Rock para siempre"; cout << tracka << endl; return 0; }

Imprimir caracteres individuales

C++
1 year ago
#include <iostream> using namespace std; int main () { char Hi = 'j'; char Bi = 'a'; cout << Hi << endl; cout << Bi << endl; return 0;

Imprimir una variable entera con un texto descriptivo

C++
1 year ago
#include <iostream> using namespace std; int main() { string ja = "Nobara es la mejor"; //este es el texto descriptivo int g = 6; //este es el número entero cout << ja << endl; cout << g << endl; return 0;

Imprimir un número entero

C++
1 year ago
#include <iostream> using namespace std; int main() { int bb = 78; // 78 es el número entero cout << bb << endl; return 0; }

Imprimir el nombre del usuario

C++
1 year ago
#include <iostream> using namespace std; int main() { string nombre = "Rueda";//el nombre del usuario es Rueda cout << nombre << endl; return 0; }

Imprimir un Mensaje de Bienvenida

C++
1 year ago
#include <iostream> using namespace std; int main() { cout << "Bienvenido" << endl; return 0; }

Mensaje de Bienvenida

C++
1 year ago
#include <iostream> using namespace std; int main() { cout << "Bienvenido a " << endl; return 0; }

Hola Mundo

C++
1 year ago
#include <iostream> int main() { std::cout << "Hola Mundo" << std::endl; return 0; }