Search

Addition of 2 No's in C || C Programs

In this blog post we are going to see program for addition of 2 numbers in C Language.


Code -

#include<stdio.h>
int main()
{
int a=5, b=10;
int c =a+b;
printf("%d", c);
}

Output -

15

2 views0 comments

Related Posts

See All

Program of Random Number in C || C Programs

Code - #include <stdio.h> #include <conio.h> #include <stdlib.h> void main() { // use rand() function to generate the number printf (" The random number is: %d", rand()); pri

Getchar() function in C || C Programs

Code - #include <stdio.h> #include <conio.h> void main() { char c; printf ("\n Enter a character \n"); c = getchar(); // get a single character printf(" You have passed ")

  • 1024px-Telegram_logo.svg
  • download
  • YouTube