pls answer the above three questions
Attachments:
Answers
Answered by
0
//consider all header files and void main
1)
char a[3];
cout<<"enter number";
cin>>a;
int sum=a[0]+a[2];
cout<<sum;
2)
int mark[10],sum=0,n;
cout<<"enter number of subject";
cin>>n;
for(int I=0;I<n;I++)
sum=sum+marks[I];
float avg=sum/n;
3)
similar to 1 but
sum=a[1]+a[2];
1)
char a[3];
cout<<"enter number";
cin>>a;
int sum=a[0]+a[2];
cout<<sum;
2)
int mark[10],sum=0,n;
cout<<"enter number of subject";
cin>>n;
for(int I=0;I<n;I++)
sum=sum+marks[I];
float avg=sum/n;
3)
similar to 1 but
sum=a[1]+a[2];
Answered by
5
Answer:
Hey there, Thank you so much for thanking my answers Army, I Purple you. #StayGold, #Dynamite.
Similar questions