Computer Science, asked by prabalpratapsingh70, 7 months ago

Input 10 numbers and print the total of odd numbers only in c language .....​

Answers

Answered by harshititms
1

Answer:

#include<stdio.h>

#include<conio.h>

void main()

{

int i,c=0,a[ ] = {1,2,3,4,5,6,7,8,9,10};

printf(“Total odd numbers in Array form :\n=”);

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

{

if(a[i]%2!=0)

{

c++;

}

}

printf(“%d”,c);

getch();

}

Please follow these all steps and please mark me as the brainliest.

Similar questions