Skip to main content

Wap in cpp for finding average of five numbers using array

#include<iostream.h>
#include<conio.h>
void main()
{
int list[5],sum=0,avg;
cout<<”enter the 5 number to find the average”;
cin>>list[0] >>list[1] >>list[2] >>list[3] >>list[4];
sum= list[0] + list[1] + list[2] + list[3] + list[4];
avg=sum/5;
cout<<avg;
getch();
}

Comments

Popular posts from this blog

How to add moving text to Blog or website

In this tutorial i will tell you How to add Moving text or Scrolling text or Marquee text in the Blog. This is moving text Moving Right to Left Code For Simple Moving Text : <marquee>This is moving text Moving Right to Left </marquee> But Simple Moving Text Looks really ugly. To make it attractive,we will add background colour to it by bgcolor="hexadecimal code" . This is moving text With Background Colour Code For Moving Text With Background Colour : <marquee bgcolor="#33cc99">This is moving text with Background Colour </marquee> You will notice that text is not clearly readable. So,we gonna change the colour of the text. This Is Coloured Scrolling Text With background colour. Code For Scrolling Text With Coloured Text & Background. : <marquee bgcolor="#33cc99" style="color:white;">This Is Coloured Scrolling Text With Background Colour </marquee> You can even control the ...

learn periodic table in hindi

H LI Na K Rb Cs Fr Rhyme: 1.Hamari lina kabr se farar 2.hai lina ki rab se fariyad Be Mg Ca Sr Ba Ra Rhyme: beta maange car scooter baap roe sc-science ti-teacher v-very cr-cruel mn-maange fe-fair co-copy ni-nickel cu-copper zn-zinc Rhyme- 1.science teacher very cruel maange fair copy nickel copper zinc 2.Still  Trying Various Creative Methods For Controlling Naughty Children Zinc y-ye zr-zara nb-nai mo-modern tc-technology ru- rh- pd- ag-agriculture cd-cdma Rhyme:ye zara nai modern technology ........................................… cdma la-laa hf-haf ta-ta w-wo re-rahi os-oos ir-idhar pt-phata au-udhar hg-hata Rhyme-la haf ta wo ree oss idhar hata udhar phata b-ba al-el ga-gai in-in ti-tabela Rhyme-bael(bull) gai(cow) in tabela c-ca si-si ge-gae sn-sunn pb-pade Rhyme-kaashi(religious place) gae sunn(fainted) pade o-aur s-sahi se-se te-te po-po Rhyme-aur sahi se tepo(cheat) f-far cl-cal ...

Snap deal Review

Hi today m going to write a review on Snapdeal to which i get introduced through online advertisments. This is one of the best website i found to get the best deals in your own city Just register ,Select your city and find deal you like and pay some small amount in my case it was just RS. 50  deduced in advance 200 in shop .deal was pay 250 for combo meal in place of 599. I paid through HDFC NetBanking . More over when you refer a friend to Snapdeal You get Rs100 off on bookmyshow.com and Rs 50 Cash which you can redeem in Snapdeal isn't that cool Visit the Snapdeal.com Other Competitors of Snapdeal.com are Mydala.com my favourite after snapdeal Coupondunia.in Khojguru.com