Computer Science, asked by sairindhri38, 5 months ago

Hey guys so heres a program for u you will be marked as a brainliest if u give the correct answer....... Write a program to display the sume of the even numbers between 1 to 10 ( Irrelevant answers will be reported) ​

Answers

Answered by basaiawmoitwenstarph
2

Answer:

Ans- This can be done by using loops(for, while, do while) concept.

Here is the c program code.

#include<stdio.h> //standard input and output library

int main() //main function

{

int i;

for(i=1;i<=10;i++) //for loop

{

if(i%2==0)

printf(“%d”,i);

}

} //end main

Explanation:

it's ok dear if yr are not satisfied this answer .. you report it... it's doesn't matter... but if yr r satisfied you can mark me. as Brainlist ❤️

Answered by shazi65
0
Hi ma’am I can’t see ya thank ya ya thank you sir sir bye ma’am thank ya thank goodness I have a good student and class class today and I have missed my exam class tomorrow and I finish writing this exam and class and I have to do my hw first one tomorrow morning and class is a great app to get it right to finish class class or students
Similar questions