Advertisement
Igor2909

es4

Mar 26th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. int main() {
  6.     int i, somma=0, cont=0;
  7.     for(i=10; i<100; i+=5){
  8.         somma = somma+i;
  9.         cont++;
  10.     }
  11.    
  12.     printf("Il numero dei multipli di 5: %d\n", cont);
  13.     system("PAUSE");
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement