Finished first group of assignments
This commit is contained in:
15
programs/prog2/main.c
Normal file
15
programs/prog2/main.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
int a;
|
||||
int b;
|
||||
|
||||
printf("Integer a: ");
|
||||
scanf("%d", &a);
|
||||
printf("Integer b: ");
|
||||
scanf("%d", &b);
|
||||
|
||||
printf("Sum of two integers is %d, and product is %d.", a+b, a*b);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user