“HAPPINESS SHOULD BE A FUNCTION WITHOUT ANY PARAMETERS”

Week 0: Assignment 0 Question 2 NPTEL Introduction to Programming in C (20 July -11 Sep) 2020.



        Introduction to Programming in C       

Assignment 0_Question 2:


-> Input : Two even integers.

Output : Average of those numbers

PROGRAM:

#include <stdio.h>

int main()
{
  int a,b;
  
  scanf("%d",&a);
  scanf("%d",&b);
  
    printf("%d",(a+b)/2);

    return 0;
}
WEEK-1 :INTRODUCTION TO PROGRAMMING IN C

CLICK ON BELOW LINK.
<<CLICK HERE FOR  WEEK 1:ASSIGNMENT 1>>

PLEASE SUBSCRIBE OUR CHANNEL.
<CLICK HERE>
FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.
Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%  correct solutions.

No comments:

Post a comment

If you have any problems related to solutions or any concept please let me know.