started assignment and added programs
This commit is contained in:
14
programs/p25/main.c
Normal file
14
programs/p25/main.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
int a, b;
|
||||
|
||||
printf("Integer a: ");
|
||||
scanf("%d", &a);
|
||||
printf("Integer b: ");
|
||||
scanf("%d", &b);
|
||||
|
||||
printf("Value of a is %f%% of b.\n", (double)a / (double)b * 100.0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user