Home

Learn Programming & Prepare for NPTEL Exams... Swayam Solver is your one-stop destination for NPTEL exam preparation.

An Introduction to Programming through C++ | Week 1: Assignment 1 | Jan 2022 | NPTEL

 Programming Assignment Code :-


Programming Assignment 1.1


Due on 2022-02-10, 23:59 IST


~~~THERE IS SOME INVISIBLE CODE HERE~~~

main_program{
  
  int m,n;
  cin>>m>>n;
  repeat(m)
  {
    cout<<"X";
  }
  repeat(n)
  {
    cout<<"Y";
  }
  
}





Programming Assignment 1.2

Due on 2022-02-10, 23:59 IST


~~~THERE IS SOME INVISIBLE CODE HERE~~~


main_program{
  
  int m;
  cin>>m;
  repeat(m)
  {
    cout<<"*"<<endl;
  }
  repeat(m+1)
  {
    cout<<"*";
  }
  
}


No comments:

Post a Comment

Keep your comments reader friendly. Be civil and respectful. No self-promotion or spam. Stick to the topic. Questions welcome.