NoteBook

    0

    0

    Mahendra Kumar

    beginnerlogic

    To calculate the number of notebooks according to the problem statement. Problem Statement:

    1 kg of the pulp can be used to make 1000 pages and 1 notebook consists of 100 pages. Suppose a notebook factory receives N kg of pulp, how many notebooks can be made from that?

    input: first input the number of test cases and in the next line enter the amount of pulp given in KG for that test case.

    #include <iostream>
    using namespace std;
    int main() {
        int T;
        int N;
        cin>>T;
        for(int i=0;i<T;i++){
            cin>>N;
            cout<<N*10<<"\n";
        }
    	// your code goes here
    	return 0;
    }
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.