Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- //o n é o valor, o m é o quanto é somado e o r é quantas vezes vai aparecer
- main(){
- int v[10];
- int n=4, m=10, r=3;
- int i,j;
- for(i=0; i<10; i++){
- v[i]=n;
- }
- for(i=r; i<10; i+=r){
- for(j=i; j<10; j++){
- v[j]+=m;
- }
- }
- for(i=0; i<10; i++){
- printf("%d ", v[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement