7.9 Process &n-s Diagram Day3

Source: Internet
Author: User

---note---

AscII a=97 a=65

Algorithm + Data structure = Program

Until execution----until

while (when) does not execute when-----

(padding for leap years):

1. A leap year that can be divisible by 4 and not divisible by 100

2. The century can be divisible by 400 is a leap year

#include<iostream>intmain(){    intyear;    std::cout<<"请输入年份:";    std::cin>>year;             //输入待判断年份,如2008    std::cout<<year<<(((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) == 1 ? "年是闰年""年是平年")<<std::endl;    return0;}

 

(以上代码摘自百度)---Note---process &n-s Figure 1-----5 factorial process &n-s Figure 2-----Ask for 1-1/2+1/3-1/4......+1/99-1/100

7.9 Process &n-s Diagram Day3

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.