Friday, December 6, 2024

TO PRINT ZERO C++ program

 NALLAMUTHU GOUNDER MAHALINGAM       COLLEGE

                      POLLACHI-642001

                                                   N.DHIVYA

                                 BSC COMPUTER SCIENCE(1st year)

                              11.TO Print Zero

#include <iostream>

int main()

{

    int num1,num2;

    std::cout<<"Enter the two numbers:";

    std::cin>>num1>>num2;

    for(int i=0;i<=num1;i++){

    for(int j=0;j<=i;j++){

    std::cout<<num1%num2;

    }

    }

}

OUTPUT:




USD TO INR C++ PROGRAMMING

  NALLAMUTHU GOUNDER MAHALINGAM COLLEGE                                                 POLLACHI-642001                                     ...