编程知识 cdmana.com

These days began to prepare for cross computer test, C language is a necessary skill

Get started

int main()
{
int num1 = 0;
int num2 = 0;
int sum = 0;
scanf("%d%d",&num1,&num2)
sum = num1+num2;
printf("%d\n",sum);
return0;
}

 A simple string of addition code 

int To shape the data type  num1 Variable name  
scanf Input code for   %d Shaping for printing 
printf To print the code 

版权声明
本文为[osc_ 873fteab]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201225134628300z.html

Scroll to Top