1.
#include"stdio.h"
#include"math.h"
void main()
{
int a[6][6],row[6];
int i,j,m,n;
printf("Input m,n:");
scanf("%d%d",&m,&n);
printf("Input %d * %d numbers:",m,n);
for(i=0;i<m;i++)
for(j=0;j<n;j++)
scanf("%d",&a[i][j]);
for(i=0;i<m;i++)
{
row[i]=0;
for(j=0;j<n;j++)
row[i]+=a[i][j];
}
for(i=0;i<m;i++)
printf("sum of row %d is
%d",i,row[i]);
}
2.
#include<stdio.h>
void main()
{
char str[80];
int i,k=0;
printf("Enter string:");
gets(str);
for(i=0;str[i]=' ';i++)
if(!(str[i]>='0'&&str[i]<='9'))
{