Home Forums C Programming plz..help me i m a beginner Reply To: plz..help me i m a beginner

#3270
Priyanka Rajput
Participant

Hi,I am MUNNA studying mca(master of computer applications) in GITAM university at vizag ,andrapradesh state,INDIA.
 

#include
void main()
{
int a[50],n,temp=1,oddsum=0;

printf("enter how many elements do u want to enter");
scanf("%d",&n);
printf("enter the numbers");
for(int i=0;i scanf("%d",&a);
for(i=0;i {
while((a%2!=0)&&(a>0)&&a<=30)
oddsum=oddsum+a;/*sum of odd numbers*/

while((a%2==0)&&(a>0)&&a<=30)
temp=temp*a;/*multipliaction of evens*/
}
}