-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathL101.c
More file actions
28 lines (26 loc) · 661 Bytes
/
L101.c
File metadata and controls
28 lines (26 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
Author :- Rajeshwari
purpose :- solving problem
Date :- 23/12/21 Thursday.
Date of modification :-
problem statement
write a program to accept elements of 2 arrays and add them into 3rd array
useing your knowledge
*/
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,a[10],b[10],c[10];
printf("Enter elements of first array");
for(i=0;i<=9;i++)
scanf("%d",&a[i]);
printf("enter elaements of secound array");
for(i=0;i<=9;i++)
scanf("%d",&b[i]);
for(i=0;i<=9;i++)
c[i]=a[i]+b[i];
printf("elements of added array");
for(i=0;i<=9;i++)
printf("%d\n",c[i]);
}