Uri 1184

Source Code


#include <stdio.h>
int main()
{
double a=0.0, b[12][12];
char t[2];
int l,x,y,f,m=7,n=11,k,o;
scanf(“%s”, &t);
for(x=0;x<=11;x++)
{
for(y=0; y<=11; y++)
scanf(“%lf”, &b[x][y]);
}

for(o=1;o<=11;o++)
{

{for(f=0;f<=k;f++)
a+=b[o][f];
k++;
}
}
if(t[0]==’S’)
printf(“%.1lf\n”,a);
else if(t[0]==’M’)
{

printf(“%.1lf\n”,a/66.0);
}
return 0;
}

Advertisements

About waprogramming

I am in CSE,from CUET
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s