---
title: "Discussion on \"A birthday boy wants to share pens and pencils to all the class memebers equally only if the pens and pencils and girls are equal to share....\" | Hashnode"
description: "Discussion on \"A birthday boy wants to share pens and pencils to all the class memebers equally only if the pens and pencils and girls are equal to share....\". HERE IS THE CODING QUESTION THAT I GOT IN TCS NQT 2024!!!!!\n#include \nint main() {\n    int pens, pencils, girls, total_items;\n    printf(\"Enter the number of pens: \");\n    scanf(\"%d\", &pens);\n    printf(\"Enter the number of pencils: \");\n    scanf(\"%d..."
url: "https://hashnode.com/posts/a-birthday-boy-wants-to-share-pens-and-pencils-to-all-the-class-memebers-equally-only-if-the-pens-and-pencils-and-girls-are-equal-to-share/664d7de9bfd7c014a95be6b1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A birthday boy wants to share pens and pencils to all the class memebers equally only if the pens and pencils and girls are equal to share....](https://mahatalks.hashnode.dev/a-birthday-boy-wants-to-share-pens-and-pencils-to-all-the-class-memebers-equally-only-if-the-pens-and-pencils-and-girls-are-equal-to-share?utm_source=hashnode&utm_medium=feed)

HERE IS THE CODING QUESTION THAT I GOT IN TCS NQT 2024!!!!! #include int main() { int pens, pencils, girls, total\_items; printf("Enter the number of pens: "); scanf("%d", &pens); printf("Enter the number of pencils: "); scanf("%d...

May 22, 2024 · 1 min read · mahatalks.hashnode.dev  
Read the article

-   [#coding-challenge](https://hashnode.com/tag/coding-challenge)

## Written by

[MAHA LAKSHMI SRIPATHI](https://hashnode.com/@mahalakshmi8897)

@mahalakshmi8897 · sr nagar secunderbad

  
[View profile](https://hashnode.com/@mahalakshmi8897)

let's have a talk about the internet things

I AM A BEGGINER BLOGGER I LOVE TO WRITE BLOGS TO IMPROVE MY KNOWLEDGE &amp;SKILLS ON THE THINGS GOING ON TRENDY

## Responses 1

Markdown supported · ⌘↵ to post

[Giriprasath A](https://hashnode.com/@GiriprasathA)

[Oct 2, 2024](https://hashnode.com/posts/a-birthday-boy-wants-to-share-pens-and-pencils-to-all-the-class-memebers-equally-only-if-the-pens-and-pencils-and-girls-are-equal-to-share/664d7de9bfd7c014a95be6b1/comment/66fcc3e942fed35fc82beb69)

Thank you
