daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. //o n é o valor, o m é o quanto é somado e o r é quantas vezes vai aparecer
  4. main(){
  5.     int v[10];
  6.     int n=4, m=10, r=3;
  7.     int i,j;
  8.    
  9.     for(i=0; i<10; i++){
  10.         v[i]=n;
  11.     }  
  12.     for(i=r; i<10; i+=r){
  13.         for(j=i; j<10; j++){
  14.             v[j]+=m;
  15.         }
  16.     }
  17.     for(i=0; i<10; i++){
  18.         printf("%d ", v[i]);
  19.     }
  20.    
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top