Solution for Exercise 16-1
ex1601
#include <stdio.h>
int main()
{
int a,b;
float c;
printf("Input the first value: ");
scanf("%d",&a);
printf("Input the second value: ");
scanf("%d",&b);
c = a/b;
printf("%d/%d = %.2f\n",a,b,c);
return(0);
}
Copyright © 1997-2025 by QPBC.
All rights reserved
