WACP To Print The Incremented Values of An Array
WACP To Print The Incremented Values of An Array
#include <stdio.h>
void main()
int a[100],n,i;
printf("enter size");
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
a[i]++;
for(i=0;i<n;i++)
printf("%d\t",a[i]);
#include <stdio.h>
int main()
int a[50],i,j,n,b[50];
printf("enter n");
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0,j=n-1;i<n;i++,j--)
b[i]=a[j];
for(j=0;j<n;j++)
printf("%d",b[j]);
return 0;
#include<stdio.h>
void main
printf(“enter size:”);
scanf(“%d”, &n) ;
{
scanf(“%d”, &a[i]);
sum = sum+a[i];
#include <stdio.h>
int main()
int n, a[n];
scanf("%d",&n);
scanf("%d",&a[i]);
if(a[i] == a[j])
{
printf("%d\n",a[i]);
} }}}
#include <stdio.h>
int main()
{
int r, c, i, j, a[10][10], t[10][10];
o/p:
Enter the number of rows and columns of matrix
2
3
Enter elements of the matrix
4 7 9
2 8 5