latest Post

Example C Program for Arithmetic operators

Program :

#include <stdio.h>
#include <conio.h>

void main()
{
int a,b,c;
clrscr();
printf("\nEnter the value 1: ");
scanf("%d",&a);
printf("Enter the value 2: ");
scanf("%d",&b);

printf("\nAddition : %d",a+b);
printf("\nSubtraction : %d",a-b);
printf("\nMultipilication :%d",a*b);
printf("\nDivision : %d",a/b);
printf("\nModules : %d",a%b);
getch();
}

Output :



About Open Learning Creative

Open Learning Creative
Recommended Posts × +

0 comments:

Post a Comment

PHP Registration form using GET, POST Methods with example

Program : HTML Code <html> <head> <title>Student Info</title> </head> <body><center> ...