C Language Code Programming questions Summary: Show expression of 1*2+3*4+...+9*10 representation

Source: Internet
Author: User

Displays the representation of an expression 1*2+3*4+...+9*10

The source program code is as follows:

1 /*2 June 7, 2017 22:54:513 function: Implementation of 1*2+3*4+...+9*10 expression operation4 5 */6#include"stdio.h"7#include"string.h"8 9 Chara[ -];Ten intI, j =0; One intMain () A { -      for(i =1; I <=Ten; i++) -     { the         ifI2!=0) -         { -A[j++] = i +'0'; -A[j++] ='*'; +         } -         Else ifI2==0&& I! =Ten) +         { AA[j++] = i +'0'; atA[j++] ='+'; -         } -         Else  -         { -A[j++] =1+'0'; -A[j++] ='0'; in         } -  to     } +A[J] =' /'; - puts (a); the     return 0; * } $ /*Panax Notoginseng Summary: - results shown in vc++6.0: the —————————————————— + 1*2+3*4+5*6+7*8+9*10 A —————————————————— the  + */

C Language Code Programming questions Summary: Show expression of 1*2+3*4+...+9*10 representation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.