Hello everyone! solution of Introduction to Programming in C week 0 assignment are given below.
#include<stdio.h>
int main()
{
printf("Hello C");
return 0;
}
#include<stdio.h>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
int avg = (a+b)/2;
printf("%d",avg);
return 0;
}
Question 1 :
#include<stdio.h>
int main()
{
printf("Hello C");
return 0;
}
Question 2 :
#include<stdio.h>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
int avg = (a+b)/2;
printf("%d",avg);
return 0;
}
0 Comments:
Post a Comment