Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #define N 10
- int Somma(int s , int k);
- int LeggereVettore(int vettore[N]);
- int main(){
- int a,b,totale,vet[N],i=0;
- printf("Inserire uno numero: ");
- scanf("%d", &a);
- printf("\nInserisci il secondo numero: ");
- scanf("%d", &b);
- totale = Somma(a,b);
- printf("La somma = %d:", totale);
- LeggereVettore(vet[N]);
- return 0;
- }
- int Somma(int s , int k){
- int somma;
- somma = s +k;
- return somma;
- }
- int LeggereVettore(int vettore[N]){
- int valore,i=0;
- while(i<=N){
- printf("\nInserisci un numero: ");
- scanf("%d", &valore );
- i=i+1;
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement