Write a program that finds and print  each array element added by 7 value.

 Given array numbers are:10,15,20,25,30.

source file name: Arradded.C 

#include<stdio.h>

int main()

{

int P[]={10,15,20,25,30};

int i;

//clrscr();

printf("\nArray numbers are: ");

for(i=0;i<5;i++)

{

printf(" %d ",P[i]);

}

printf("\n  all array numbers is added by 7 value: ");

for(i=0;i<5;i++)

{

printf("\n  %d  ",P[i]+7);

}

//getch();

return 0;

}

output: