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); }
Output
Input the first value: 3
Input the second value: 2
3/2 = 1.00
Copyright © 1997-2024 by QPBC.
All rights reserved