Meu programa esta retornando 0 o que esta errado? #include
int main (void)
{
int v, n, m;
scanf("%d", &v);
scanf("%d", &n);
scanf("%d", &m);

while (v!=0 && n!=0 && m!=0){
if (n%10000 == m%10000)
v=v*1000;
else
if (n%1000==m%1000)
v=v*100;
else
if (n%100==m%100)
v=v*10;

}
printf ("%d", v);

}
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Helpful Social

Copyright © 2024 ELIBRARY.TIPS - All rights reserved.