Skip to content

Instantly share code, notes, and snippets.

@Mistat
Created June 7, 2010 14:42
Show Gist options
  • Select an option

  • Save Mistat/428744 to your computer and use it in GitHub Desktop.

Select an option

Save Mistat/428744 to your computer and use it in GitHub Desktop.
#include <stdio.h>
/**
* 変数はiからはじめて欲しいものだ。。
*/
void main()
{
int a,b,c,d,e,f,g;
printf("2つの整数を入力してください。\n");
scanf("%d,%d",&a,&b);
c = a + b;
d = a - b;
e = a * b;
f = a / b;
g = a % b;
printf("%d と %d \n 和=%d\n 差=%d\n 積=%d\n 商=%d\n 余り=%d",
a,b,c,d,e,f,g);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment