home
Learn
screen_rotation
#include <stdio.h> #include <conio.h> void divideBy(int a){ int res; res = a % 5; if(res == 0){ printf("\n %d is divided by 5",a); } else{ printf("\n %d is not divided by 5",a); } } void main(){ int v; clrscr(); printf("\n This is parameterize function program."); printf("\n Enter value: "); scanf("%d",&v); divideBy(v); getch(); }
Program Output
This is parameterize function program. Enter value: 35 35 is divided by 5