Test Post

September 2, 2021

2 minutes

Profile Pic

Balaji Kannan

Heading 1

Lorem ipsum dolor sit amet consectetur adipisicing elit. Assumenda magnam ad aspernatur molestiae cum nulla ab, repellat omnis impedit. Lorem ipsum dolor sit amet consectetur adipisicing elit. Et, culpa tempore ducimus magnam quibusdam architecto repellat suscipit facere esse fuga ullam eos! Cupiditate, tempora exercitationem. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quasi voluptate vel porro a unde error ut, at excepturi mollitia quia eveniet earum eos aliquid hic, officia necessitatibus, harum fuga saepe! Lorem ipsum dolor sit amet consectetur adipisicing elit. Culpa, corporis architecto tenetur tempora sapiente aspernatur recusandae. Pariatur fuga sunt assumenda in sequi, hic minima! Totam beatae earum eveniet laudantium voluptate! Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempore non ex, autem debitis recusandae officia laudantium a totam voluptatem expedita vitae unde enim nisi impedit deserunt hic quos, commodi suscipit! Lorem ipsum dolor sit amet consectetur adipisicing elit. Obcaecati quis expedita aut eos consequatur. Ad voluptatem explicabo amet dolorum saepe omnis corrupti natus id aperiam neque? Laborum voluptatibus itaque porro.

Heading 2

Heading 3

Heading 4

Link Another Link


Blockquote


  • [x] Done this task
  • [ ] Not done this task
  • [ ] Some other random task

C++

1
#include<bits/stdc++.h>
2
3
using namespace std;
4
5
int main() {
6
int n, ans = 0;
7
cin >> n;
8
// Sum of all inputs
9
for(int i = 0; i < n; ++i) {
10
int a;
11
cin >> a;
12
ans += a;
13
}
14
cout << ans << "\n";
15
}

Website Image

Go

1
package main
2
3
import "fmt"
4
5
func main() {
6
var n int
7
fmt.Print("Enter number : ")
8
fmt.Scan(&n)
9
10
if n == 1 {
11
fmt.Println(1)
12
} else if n == 2 {
13
fmt.Println(1, 1)
14
} else {
15
a := 1
16
b := 1
17
fmt.Print(1, 1, " ")
18
c := 0
19
n -= 2
20
for i := 0; i < n; i++ {
21
c = a + b
22
fmt.Print(c, " ")
23
a = b
24
b = c
25
}
26
}
27
}

Another Another Link