এই কোডে সমস্যা কোথায়? আউটপুট ঠিকমত দেখাচ্ছে না কেন?

#include <stdio.h>

int main()
{
    int t, i, a, b;
    scanf("%d ", &t);
    for (i = 1; i <= t; i++)
    {
        scanf("%d %d \n", &a, &b);

        int ans = a + b;

        printf("%d \n", ans);
    }
    return 0;
}

asked 10 Oct, 06:03

nishat's gravatar image

nishat
615

edited 10 Oct, 06:35

Mosharraf%20Hosain's gravatar image

Mosharraf Hosain ♦
13618


scanf("%d %d", &a, &b);
permanent link

answered 10 Oct, 09:14

byazidbostami's gravatar image

byazidbostami
212

edited 10 Oct, 10:18

Mosharraf%20Hosain's gravatar image

Mosharraf Hosain ♦
13618

অসংখ্য ধন্যবাদ।

(10 Oct, 14:25) nishat
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×358

question asked: 10 Oct, 06:03

question was seen: 102 times

last updated: 11 Oct, 12:25