Advertisement
apfel2kuchen

C | Perfekt durch 10 Teilbare Zahl ausgeben

Jul 21st, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. //Print the next number which is divisible through 10
  2.  
  3. printf("Geben Sie eine Zahl ein\n");
  4. scanf("%d",&m);
  5. i = m% 10;
  6. while (i != 0) {
  7. m++;
  8. i = m% 10;
  9. }
  10. printf("Next through 10 is: %d", m);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement