November 2018 1 34 Report
Hola 15PTOS
Alguien q me ayude
Tengo un error en este codigo de dev c++

[Error] expected ';' before 'cout'

#include
int main () {
using namespace std;
int num, multiplicacion=0 ;
cout << " ingrese un numero y se lo descompongo " ;
cin >> num;
for (int i=1;i<=num;i++ ) {
for (int v=1;v<=num;v++ ) {
if (i*v==num){
multiplicacion++;
}
}
}
multiplicacion=multiplicacion/2
cout << "el numero de multiplicaciones es: " << multiplicacion;
}
More Questions From This User See All

Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.