math.answers.com/math-and-arithmetic/C_program_to_find_sum_of_odd_numbers_in_an_array

Preview meta tags from the math.answers.com website.

Linked Hostnames

8

Thumbnail

Search Engine Appearance

Google

https://math.answers.com/math-and-arithmetic/C_program_to_find_sum_of_odd_numbers_in_an_array

C program to find sum of odd numbers in an array? - Answers

#include<stdio.h> #include<conio.h> void main() { int n, a[10, evensum=0, oddsum=0, i; printf("\n Enter the number of values"); scanf("\n %d", &n); printf("\n Enter %d number of values", n); for(i=0; i<n; i++) scanf("\n %d", &a[i]); while(i<n) { if(a[i]%2==0) evensum=evensum + a[i]; else oddsum=oddsum + a[i]; } printf("\n Odd sum = %d", oddsum); printf("\n Even sum = %d", evensum); getch(); } Hopefully, is that correct, anyone out there.... I am a beginner and this is my homework, please help me correct the mistaks if you know them...



Bing

C program to find sum of odd numbers in an array? - Answers

https://math.answers.com/math-and-arithmetic/C_program_to_find_sum_of_odd_numbers_in_an_array

#include<stdio.h> #include<conio.h> void main() { int n, a[10, evensum=0, oddsum=0, i; printf("\n Enter the number of values"); scanf("\n %d", &n); printf("\n Enter %d number of values", n); for(i=0; i<n; i++) scanf("\n %d", &a[i]); while(i<n) { if(a[i]%2==0) evensum=evensum + a[i]; else oddsum=oddsum + a[i]; } printf("\n Odd sum = %d", oddsum); printf("\n Even sum = %d", evensum); getch(); } Hopefully, is that correct, anyone out there.... I am a beginner and this is my homework, please help me correct the mistaks if you know them...



DuckDuckGo

https://math.answers.com/math-and-arithmetic/C_program_to_find_sum_of_odd_numbers_in_an_array

C program to find sum of odd numbers in an array? - Answers

#include<stdio.h> #include<conio.h> void main() { int n, a[10, evensum=0, oddsum=0, i; printf("\n Enter the number of values"); scanf("\n %d", &n); printf("\n Enter %d number of values", n); for(i=0; i<n; i++) scanf("\n %d", &a[i]); while(i<n) { if(a[i]%2==0) evensum=evensum + a[i]; else oddsum=oddsum + a[i]; } printf("\n Odd sum = %d", oddsum); printf("\n Even sum = %d", evensum); getch(); } Hopefully, is that correct, anyone out there.... I am a beginner and this is my homework, please help me correct the mistaks if you know them...

  • General Meta Tags

    22
    • title
      C program to find sum of odd numbers in an array? - Answers
    • charset
      utf-8
    • Content-Type
      text/html; charset=utf-8
    • viewport
      minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no
    • X-UA-Compatible
      IE=edge,chrome=1
  • Open Graph Meta Tags

    7
    • og:image
      https://st.answers.com/html_test_assets/Answers_Blue.jpeg
    • og:image:width
      900
    • og:image:height
      900
    • og:site_name
      Answers
    • og:description
      #include<stdio.h> #include<conio.h> void main() { int n, a[10, evensum=0, oddsum=0, i; printf("\n Enter the number of values"); scanf("\n %d", &n); printf("\n Enter %d number of values", n); for(i=0; i<n; i++) scanf("\n %d", &a[i]); while(i<n) { if(a[i]%2==0) evensum=evensum + a[i]; else oddsum=oddsum + a[i]; } printf("\n Odd sum = %d", oddsum); printf("\n Even sum = %d", evensum); getch(); } Hopefully, is that correct, anyone out there.... I am a beginner and this is my homework, please help me correct the mistaks if you know them...
  • Twitter Meta Tags

    1
    • twitter:card
      summary_large_image
  • Link Tags

    16
    • alternate
      https://www.answers.com/feed.rss
    • apple-touch-icon
      /icons/180x180.png
    • canonical
      https://math.answers.com/math-and-arithmetic/C_program_to_find_sum_of_odd_numbers_in_an_array
    • icon
      /favicon.svg
    • icon
      /icons/16x16.png

Links

58