C Programming Plus
www.cprogrammingplus.com
Pages
Home
Input Output
Operator
Math.h
If, If....else
Conditional Operator
Switch
Series
Pyramid
Loop
One Dimensional Array
Multi Dimensional Array
String.h
String
File Read
File Write
File Read and Write
Structure
Function
Recursive Function
Pointer
Miscellaneous program
ASCII Character Codes
PDF Books
Saturday, March 20, 2021
2.6. Write a program that read two integer and display remainder.
#include<stdio.h>
#include<conio.h>
void main ()
{
int a,b;
clrscr ();
printf("a= ");
scanf ("d", &a);
printf("b= ");
scanf("%d", &b);
printf("Mod= %d", a%b);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment