1.

#. Write the program on C language: a) Ask any two numbers and display the result by adding them. Eg: A= 1, B=2, Sum= A+B, sum= 3 b) Print “Hello World” on screen. ​

Answer» E#includevoid main (){clrscr();int a,B,c;printf(“Enter 1st number:”);SCANF(“%d”,&a);printf(“\nEnter 2nd number:”);scanf(“%d”,&b);c=a+b;printf(“The sum of 2 NUMBERS is :”,c);GETCH();}


Discussion

No Comment Found