Skip to content

Instantly share code, notes, and snippets.

View tanushbanerjee's full-sized avatar

Tanush Banerjee tanushbanerjee

View GitHub Profile

Problem A: Given 2 integers a and b, print the sum of the 2 numbers Problem B: Given an integers, print the next integer Problem C: Given integer n which represents n minutes, convert minutes to seconds and print them Problem D: Given 2 integers a and b, find the remainder when a divides b Problem E: Given an integer, check if the number is a negative number Problem F: Given a boolean value, if the boolean value is true, then print false, else print true; Problem G: Given an integer, find if the number is less than 100 Problem H: Given an integer, check if the number is divisible by 5 Problem I: Take 3 integers prob, prize, pay as input, print true if prob * prize > pay, else print false Problem J: Given an integer print "YES" if the number is odd else print "NO"

Competition 1

A: Write a program to print your name. - 100 points

#include <bits/stdc++.h>
using namespace std;
int main() {
  cout << "TANUSH" << "\n";
  return 0;
}