Get Answers to all your Questions

header-bg qa

Write a program to find the smallest digit of an integer that is input?

Answers (1)

best_answer

#include<stdio.h>

#include<conio.h>

void main()

int n,a[100],s,i;

printf(" How many numbers :");

scanf("0",&n);

printf("Enter the integer numbers:");

for(i=0;i<n;i++)

scanf("0",a[i]));

s=a[0];

for(i=0;i<n;i++)

if(a[i]<s)

s=a[i];

printf("smallest number is:0",s);

getch(0);

Posted by

Deependra Verma

View full answer