#include <stdio.h>

struct student_data{
int a;
int b;
char x[100];
char y[100];
}test;

void data_input()
{
printf("2つの値を入力してください。\n");
scanf("%s",&test.x);
scanf("%s",&test.y);
}

int main(int, char*)
{
data_input();

printf("x = %s, y = %s, x + y = %d, x * y = %d",test.x,test.y,test.a,test.b);

return 0;
}


に a = x + y; と b = x * y;ってゆう処理を入れたいんですけど

どう書けばいいんでしょうか?