1 solutions
-
0
C :
#include<stdio.h> int main() { int a,b,c,d; scanf("%d%d",&a,&b); c=a/b; d=a%b; printf("%d ",c); printf("%d\n",d); return 0; }C++ :
#include<stdio.h> int main() { int a,b,c,d; scanf("%d%d",&a,&b); c=a/b; d=a%b; printf("%d %d",c,d); return 0; }Pascal :
var a,b:longint; begin readln(a,b); writeln(a div b,' ',a mod b); end.
- 1
Information
- ID
- 20149
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By