Write a program to find the sum of first 10 even numbers.
plz answer me
Answers
Answered by
0
Answer:
// C language
#include<stdio.h>
int main()
{
int sum,i;
for(i=1;i<=10;i++)
{
sum=sum+i*2;
}
printf("%d",sum);
return 1;
}
Answered by
3
ɧɛƖƖơ ɱąɬɛ
ɪᴛs ᴜsɪɴɢ ᴘʏᴛʜᴏɴ ᴘʀᴏɢʀᴀᴍᴍɪɴɢ ʟᴀɴɢᴜᴀɢᴇ
Answer:
ᴘʟᴇᴀsᴇ ʀᴇFᴇʀ ᴛᴏ ᴛʜᴇ ᴀᴛᴛᴀᴄʜᴍᴇɴᴛ..
NOTE:
- Fɪʀsᴛ ᴀᴛᴛᴀᴄʜᴍᴇɴᴛ ᴄᴏɴᴛᴀɪɴs ᴛʜᴇ ᴘʀᴏɢʀᴀᴍ
- sᴇᴄᴏɴᴅ ᴀᴛᴛᴀᴄʜᴍᴇɴᴛ ᴄᴏɴᴛᴀɪɴs ᴛʜᴇ ᴏᴜᴛᴘᴜᴛ
ɧơ℘ɛ ıɬ ɧɛƖ℘ʂ ყơų ☺
Attachments:
Similar questions