Addition ( accepting value ) "" use of scanf ""

Addition ( for accepting value)

  • Open TurboC++
  • file>>new

  • coding

#include<stdio.h>

#include<conio.h>

void main()

{

int a,b,c;

clrscr();

printf("entre the value of a :");

scanf("%d",&a);

printf("entre the value of b : ");

scanf("%d",&b);

c=a+b;

printf("the sum of  %d and %d is %d , a,b,c);

getch();

}

  • Run Programme
>>ctrl+f9
  • compile Programme
>>alt+f9
  • output comes




for help


harshalbhamare02@gmail.com

Comments

Popular posts from this blog

Area of circle = 3.14*r*r

Division ( / ) float