Statemant of C Program: This Program accepts the Marks obtained by 30 Students of a Class in a Test and Compute the Average Marks:
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
int Avg;
int maks[40]; /* Array Declaration */
clrscr();
sum=0;
for( i=0 ; i<=29 ; i++)
{
printf(" Enter Marks/n ");
scanf("%d" , &marks[i] ); /* Store Data in Array */
}
for( i=0 ; i<=29 ; i++ )
{
Sum = sum + marks[i]; /* Read Data from an Array */
Avg = Sum/30;
printf(" Average Marks = %d\n" , Avg);
}
} /* End of main() */
Output:
Enter Marks
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
Average Marks = 31
58
60
Average Marks = 31
That's All
Haloo pak^^
ReplyDeleteKami dari SENTANAPOKER ingin menawarkan pak^^
Untuk saat ini kami menerima Deposit Melalui Pulsa ya pak.
*untuk minimal deposit 10ribu
*untuk minimal Withdraw 25ribu
*untuk deposit pulsa kami menerima provider
-XL
-Telkomsel
untuk bonus yang kami miliki kami memiliki
*bonus cashback 0,5%
*bunus refferal 20%
*bonus gebiar bulanan (N-max,samsung Note 10+,Iphone xr 64G,camera go pro 7hero,Apple airpods 2 ,dan freechips)
Daftar Langsung Di:
SENTANAPOKER
Kontak Kami;
WA : +855 9647 76509
Line : SentanaPoker
Wechat : SentanaPokerLivechat Sentanapoker
Proses deposit dan withdraw tercepat bisa anda rasakan jika bermain di Sentanapoker. So… ? tunggu apa lagi ? Mari bergabung dengan kami. Pelayanan CS yang ramah dan Proffesional dan pastinya sangat aman juga bisa anda dapatkan di Sentanapoker.
Nice blog...! It was the very best article about this title and thank you for giving a brief explanation. Keep posting more updating them...
ReplyDeleteSalesforce Training | Online Course | Certification in chennai | Salesforce Training | Online Course | Certification in bangalore | Salesforce Training | Online Course | Certification in hyderabad | Salesforce Training | Online Course | Certification in pune